Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 60

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

autofs-5.0.1 - fix get query dn failure

From: Ian Kent <raven@themaw.net>

Recent changes to the LDAP connection logic can fail to retrieve a valid
query dn upon LDAP connection.

If LDAP is being used to store autofs maps, the LDAP schema to be used
for the maps is explicitly defined in the autofs configuration and no
master map entries exist in LDAP autofs fails to try and retrieve a
query dn, returning success instead of failure.
---

 modules/lookup_ldap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--- autofs-5.0.1.orig/modules/lookup_ldap.c
+++ autofs-5.0.1/modules/lookup_ldap.c
@@ -478,7 +478,7 @@ static int do_bind(unsigned logopt, LDAP
 		}
 	}
 
-	if (ctxt->schema && !need_base)
+	if (ctxt->schema && ctxt->qdn && !need_base)
 		return 1;
 
 	/*