mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Should accept regular LDIF input
This commit is contained in:
parent
626608f5f2
commit
67bb145098
1 changed files with 4 additions and 1 deletions
|
|
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue