From efaab64b699d94172e37a747ba22a97abd3203f4 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 15 Mar 2001 03:03:01 +0000 Subject: [PATCH] Normalized user DN --- servers/slapd/back-ldbm/passwd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/back-ldbm/passwd.c b/servers/slapd/back-ldbm/passwd.c index eb339f0149..8831a3d971 100644 --- a/servers/slapd/back-ldbm/passwd.c +++ b/servers/slapd/back-ldbm/passwd.c @@ -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 ) { -- 2.39.5