[CalendarServer-changes] [12314] twext/trunk/twext/who/ldap

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:17:34 PDT 2014


Revision: 12314
          http://trac.calendarserver.org//changeset/12314
Author:   wsanchez at apple.com
Date:     2014-01-11 14:17:58 -0800 (Sat, 11 Jan 2014)
Log Message:
-----------
LDAPConnectionAuthError -> LDAPBindAuthError

Modified Paths:
--------------
    twext/trunk/twext/who/ldap/_service.py
    twext/trunk/twext/who/ldap/test/test_service.py

Modified: twext/trunk/twext/who/ldap/_service.py
===================================================================
--- twext/trunk/twext/who/ldap/_service.py	2014-01-11 22:16:45 UTC (rev 12313)
+++ twext/trunk/twext/who/ldap/_service.py	2014-01-11 22:17:58 UTC (rev 12314)
@@ -82,9 +82,9 @@
 
 
 
-class LDAPConnectionAuthError(LDAPConnectionError):
+class LDAPBindAuthError(LDAPConnectionError):
     """
-    LDAP connection auth error.
+    LDAP bind auth error.
     """
 
 
@@ -205,7 +205,7 @@
                             "Unable to bind to LDAP as {credentials.username}",
                             credentials=self.credentials
                         )
-                        raise LDAPConnectionAuthError(
+                        raise LDAPBindAuthError(
                             self.credentials.username, e
                         )
 

Modified: twext/trunk/twext/who/ldap/test/test_service.py
===================================================================
--- twext/trunk/twext/who/ldap/test/test_service.py	2014-01-11 22:16:45 UTC (rev 12313)
+++ twext/trunk/twext/who/ldap/test/test_service.py	2014-01-11 22:17:58 UTC (rev 12314)
@@ -31,7 +31,7 @@
 # )
 from .._service import (
     DEFAULT_URL,
-    LDAPConnectionAuthError,
+    LDAPBindAuthError,
     DirectoryService, DirectoryRecord,
 )
 
@@ -119,7 +119,7 @@
             "__password__"
         )
         service = self.service(credentials=credentials)
-        self.assertFailure(service._connect(), LDAPConnectionAuthError)
+        self.assertFailure(service._connect(), LDAPBindAuthError)
 
 
     @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/ca1d527c/attachment.html>


More information about the calendarserver-changes mailing list