Sophie

Sophie

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

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

diff --git a/CHANGELOG b/CHANGELOG
index 045ae6e..c103885 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -12,6 +12,7 @@
   - and fix the recursive map key lookup for browsable map case.
 - review iand fix master map options update for map reload.
 - fix "-fstype=nfs4" handling.
+- fix get_query_dn not looking in subtree for LDAP search.
 
 1/9/2006 autofs-5.0.1 rc2
 -------------------------
diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
index 277e2d6..c9515a0 100644
--- a/modules/lookup_ldap.c
+++ b/modules/lookup_ldap.c
@@ -808,7 +808,7 @@ static int get_query_dn(LDAP *ldap, stru
 			      MODPREFIX "error forming query string");
 			return 0;
 		}
-		scope = LDAP_SCOPE_BASE;
+		scope = LDAP_SCOPE_SUBTREE;
 	}
 	query[l] = '\0';