[CalendarServer-changes] [9742] CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 23 13:34:37 PDT 2012


Revision: 9742
          http://trac.macosforge.org/projects/calendarserver/changeset/9742
Author:   sagen at apple.com
Date:     2012-08-23 13:34:37 -0700 (Thu, 23 Aug 2012)
Log Message:
-----------
Use the right scope when looking up by DN

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py

Modified: CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2012-08-23 20:10:35 UTC (rev 9741)
+++ CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2012-08-23 20:34:37 UTC (rev 9742)
@@ -679,7 +679,7 @@
             self.log_debug("Retrieving ldap record with base %s and filter %s." %
                 (ldap.dn.dn2str(base), filterstr))
             result = self.timedSearch(ldap.dn.dn2str(base),
-                ldap.SCOPE_SUBTREE, filterstr=filterstr, attrlist=self.attrlist)
+                scope, filterstr=filterstr, attrlist=self.attrlist)
 
             if len(result) == 0:
                 continue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120823/bfffc01e/attachment.html>


More information about the calendarserver-changes mailing list