[CalendarServer-changes] [11022] CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Apr 9 20:13:10 PDT 2013
Revision: 11022
http://trac.calendarserver.org//changeset/11022
Author: sagen at apple.com
Date: 2013-04-09 20:13:10 -0700 (Tue, 09 Apr 2013)
Log Message:
-----------
Retry on ldap auth NO_SUCH_OBJECT in case it's transient
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
Modified: CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py 2013-04-10 01:50:16 UTC (rev 11021)
+++ CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py 2013-04-10 03:13:10 UTC (rev 11022)
@@ -480,6 +480,11 @@
# Seen when using an empty password, treat as invalid creds
raise ldap.INVALID_CREDENTIALS()
+ except ldap.NO_SUCH_OBJECT:
+ self.log_error("LDAP Authentication error for %s: NO_SUCH_OBJECT"
+ % (dn,))
+ # fall through to try again; could be transient
+
except ldap.INVALID_CREDENTIALS:
raise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130409/0fc2ecf8/attachment.html>
More information about the calendarserver-changes
mailing list