From: Quanah Gibson-Mount Date: Mon, 14 Apr 2008 23:43:13 +0000 (+0000) Subject: Should accept regular LDIF input X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ada28a179275f1687d1f700444e3cf19d2868449;p=openldap Should accept regular LDIF input --- diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index 87e4fdbe99..f186f670b3 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -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 ); }