From 6d35b37e0e881ef1c86188be2259de477d1ae351 Mon Sep 17 00:00:00 2001
From: Kurt Zeilenga <kurt@openldap.org>
Date: Tue, 4 Dec 2001 19:27:18 +0000
Subject: [PATCH] Fix e_ndn bug from HEAD

---
 servers/slapd/back-passwd/search.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/servers/slapd/back-passwd/search.c b/servers/slapd/back-passwd/search.c
index 4cc91c042a..6f5bcd50d2 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.
 		 	*/
-- 
GitLab