]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Normalize DN
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 04:15:51 +0000 (04:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 04:15:51 +0000 (04:15 +0000)
servers/slapd/back-ldbm/passwd.c

index 3c66a86b8d4ebe09e22cb3393108e0193f3607e2..226914bac673ad4b95440888c8063e11f47e581b 100644 (file)
@@ -84,6 +84,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 ) {