From 901d655ba7d9dd4f912508b89c6e6803ee95b843 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Schieli?= Date: Sun, 8 Aug 2010 08:23:12 -0700 Subject: [PATCH] Make sure existing entries can be found by userid A typo in LDAP__lookup_princ makes using existing LDAP entries broken, a new entry is always created even if an entry with proper uid and structural objectclass can be found. Signed-off-by: Love Hornquist Astrand --- lib/hdb/hdb-ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hdb/hdb-ldap.c b/lib/hdb/hdb-ldap.c index f8d31bfa9..37279d9bc 100644 --- a/lib/hdb/hdb-ldap.c +++ b/lib/hdb/hdb-ldap.c @@ -886,7 +886,7 @@ LDAP__lookup_princ(krb5_context context, ldap_msgfree(*msg); *msg = NULL; - ret = escape_value(context, princname, "e); + ret = escape_value(context, userid, "e); if (ret) goto out; -- 2.11.4.GIT