svn commit: samba r13220 - in trunk/source/lib: .

vlendec at samba.org vlendec at samba.org
Sun Jan 29 10:10:36 GMT 2006


Author: vlendec
Date: 2006-01-29 10:10:36 +0000 (Sun, 29 Jan 2006)
New Revision: 13220

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

Log:
There's no point in trying to access LDAP 10 times when we are not root.

Volker

Modified:
   trunk/source/lib/smbldap.c


Changeset:
Modified: trunk/source/lib/smbldap.c
===================================================================
--- trunk/source/lib/smbldap.c	2006-01-29 08:51:12 UTC (rev 13219)
+++ trunk/source/lib/smbldap.c	2006-01-29 10:10:36 UTC (rev 13220)
@@ -1100,6 +1100,14 @@
 			return True;
 		}
 
+		if (open_rc == LDAP_INSUFFICIENT_ACCESS) {
+			/* The fact that we are non-root or any other
+			 * access-denied condition will not change in the next
+			 * round of trying */
+			*rc = open_rc;
+			break;
+		}
+
 		if (got_alarm) {
 			*rc = LDAP_TIMEOUT;
 			break;



More information about the samba-cvs mailing list