Sophie

Sophie

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

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

autofs-5.0.1 - fix reconnect get base dn

From: Ian Kent <raven@themaw.net>

If connect to an LDAP server but fail to find a valid query dn a
subsequent reconnect succeeds without setting the schema fields
used for constructing queries. A segfault then occurs when we try
to construct a query using the schema values that should have been
set during the query dn validation.
---

 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 (!need_base)
+	if (ctxt->schema && !need_base)
 		return 1;
 
 	/*