diff --git a/servers/slapd/back-passwd/search.c b/servers/slapd/back-passwd/search.c index 4cc91c042a38874cd705cb328c403d93b75731b3..6f5bcd50d29d6a60dcc462a72b8322d0da4b1309 100644 --- a/servers/slapd/back-passwd/search.c +++ b/servers/slapd/back-passwd/search.c @@ -85,6 +85,9 @@ passwd_back_search( e->e_attrs = NULL; e->e_dn = ch_strdup( base ); + e->e_ndn = ch_strdup( e->e_dn ); + (void) dn_normalize( e->e_ndn ); + /* Use the first attribute of the DN * as an attribute within the entry itself. */