Should accept regular LDIF input

This commit is contained in:
Howard Chu 2008-04-03 08:50:19 +00:00
parent 626608f5f2
commit 67bb145098

View file

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