]> git.sur5r.net Git - openldap/commitdiff
Normalized user DN
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:03:01 +0000 (03:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:03:01 +0000 (03:03 +0000)
servers/slapd/back-ldbm/passwd.c

index eb339f0149ff57230afacbdb778fff261c2a7cb3..8831a3d971e69ebd50b51495c6189deef08d2b3a 100644 (file)
@@ -98,6 +98,12 @@ ldbm_back_exop_passwd(
                goto done;
        }
 
+       if( dn_normalize( dn ) == NULL ) {
+               *text = "Invalid DN";
+               rc = LDAP_INVALID_DN;
+               goto done;
+       }
+
        e = dn2entry_w( be, dn, NULL );
 
        if( e == NULL ) {