mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
base64 encode userPassword
This commit is contained in:
parent
bc73fffe12
commit
0a8f4c0458
1 changed files with 6 additions and 4 deletions
|
|
@ -393,10 +393,12 @@ ldif_sput(
|
|||
|
||||
stop = (unsigned char *) (val + vlen);
|
||||
|
||||
if ( type == LDIF_PUT_VALUE &&
|
||||
isgraph( val[0] ) && val[0] != ':' && val[0] != '<' &&
|
||||
isgraph( val[vlen-1] ) )
|
||||
{
|
||||
if ( type == LDIF_PUT_VALUE
|
||||
&& isgraph( val[0] ) && val[0] != ':' && val[0] != '<'
|
||||
&& isgraph( val[vlen-1] )
|
||||
&& strcasecmp( name, "userPassword" ) != 0 /* encode userPassword */
|
||||
&& strcasecmp( name, "2.5.4.35" ) != 0 /* encode userPassword */
|
||||
) {
|
||||
int b64 = 0;
|
||||
|
||||
for ( byte = (unsigned char *) val; byte < stop;
|
||||
|
|
|
|||
Loading…
Reference in a new issue