base64 encode userPassword

This commit is contained in:
Kurt Zeilenga 1999-08-05 00:30:45 +00:00
parent bc73fffe12
commit 0a8f4c0458

View file

@ -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;