Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 290314bcd05f8d672d45e72918073e43 > files > 61

autofs-5.0.1-0.rc2.102.src.rpm

diff --git a/CHANGELOG b/CHANGELOG
index 2aacdc7..06ef49b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -23,6 +23,8 @@
 - fix "-fstype=nfs4" server probing.
 - set close-on-exec flag on open files where possible.
 - fix parsing of numeric host names in LDAP map specs.
+- fix get_query_dn not looking in subtree for LDAP search (missed second
+  occurance).
 
 1/9/2006 autofs-5.0.1 rc2
 -------------------------
diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
index c9515a0..3a1d36b 100644
--- a/modules/lookup_ldap.c
+++ b/modules/lookup_ldap.c
@@ -801,7 +801,7 @@ static int get_query_dn(LDAP *ldap, stru
 			      MODPREFIX "error forming query string");
 			return 0;
 		}
-		scope = LDAP_SCOPE_ONELEVEL;
+		scope = LDAP_SCOPE_SUBTREE;
 	} else {
 		if (sprintf(query, "(objectclass=%s)", class) >= l) {
 			debug(LOGOPT_NONE,