diff --git a/servers/slapd/back-ldbm/passwd.c b/servers/slapd/back-ldbm/passwd.c index 3c66a86b8d..226914bac6 100644 --- a/servers/slapd/back-ldbm/passwd.c +++ b/servers/slapd/back-ldbm/passwd.c @@ -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 ) {