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

source_changes at macosforge.org source_changes at macosforge.org
Tue Oct 4 15:11:02 PDT 2011


Revision: 8144
          http://trac.macosforge.org/projects/calendarserver/changeset/8144
Author:   sagen at apple.com
Date:     2011-10-04 15:11:00 -0700 (Tue, 04 Oct 2011)
Log Message:
-----------
Pull all recordNames from LDAP, not just the first one returned.

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

Modified: CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2011-10-04 15:34:13 UTC (rev 8143)
+++ CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2011-10-04 22:11:00 UTC (rev 8144)
@@ -625,7 +625,7 @@
         uid = None
         enabledForLogin = True
 
-        shortNames = (self._getUniqueLdapAttribute(attrs, self.rdnSchema[recordType]["mapping"]["recordName"]),)
+        shortNames = tuple(self._getMultipleLdapAttributes(attrs, self.rdnSchema[recordType]["mapping"]["recordName"]))
 
         # First check for and add guid
         guidAttr = self.rdnSchema["guidAttr"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111004/31665349/attachment.html>


More information about the calendarserver-changes mailing list