svn commit: samba r19746 - in branches/SAMBA_3_0_24/source/libads: .

gd at samba.org gd at samba.org
Thu Nov 16 17:57:02 GMT 2006


Author: gd
Date: 2006-11-16 17:57:01 +0000 (Thu, 16 Nov 2006)
New Revision: 19746

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19746

Log:
Older LDAP libs (SLES8) don't have LDAP_SCOPE_ONE.

Guenther

Modified:
   branches/SAMBA_3_0_24/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0_24/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0_24/source/libads/ldap.c	2006-11-16 11:55:16 UTC (rev 19745)
+++ branches/SAMBA_3_0_24/source/libads/ldap.c	2006-11-16 17:57:01 UTC (rev 19746)
@@ -2968,7 +2968,7 @@
 		/* we only search with scope ONE, we do not expect any further
 		 * objects to be created deeper */
 
-		status = ads_do_search_retry(ads, hostnameDN, LDAP_SCOPE_ONE,
+		status = ads_do_search_retry(ads, hostnameDN, LDAP_SCOPE_ONELEVEL,
 					"(objectclass=*)", attrs, &res);
 
 		if (!ADS_ERR_OK(status)) {
@@ -3001,7 +3001,7 @@
 		}
 
 		/* there should be no subordinate objects anymore */
-		status = ads_do_search_retry(ads, hostnameDN, LDAP_SCOPE_ONE,
+		status = ads_do_search_retry(ads, hostnameDN, LDAP_SCOPE_ONELEVEL,
 					"(objectclass=*)", attrs, &res);
 
 		if (!ADS_ERR_OK(status) || ( (ads_count_replies(ads, res)) > 0 ) ) {



More information about the samba-cvs mailing list