Skip to content
Snippets Groups Projects
Commit ada28a17 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Should accept regular LDIF input

parent 615e303e
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,10 @@ get_add_entry( char *filename, LDAPMod ***mods )
if (( nl = strchr( line, '\r' )) || ( nl = strchr( line, '\n' )))
*nl = '\0';
entry = strdup( line );
nl = line;
if ( !strncasecmp( nl, "dn: ", 4 ))
nl += 4;
entry = strdup( nl );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment