Skip to content
Snippets Groups Projects
Commit 0a8f4c04 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

base64 encode userPassword

parent bc73fffe
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment