[CalendarServer-changes] [12338] twext/trunk/twext/who/ldap/_service.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:19:02 PDT 2014


Revision: 12338
          http://trac.calendarserver.org//changeset/12338
Author:   wsanchez at apple.com
Date:     2014-01-14 13:18:02 -0800 (Tue, 14 Jan 2014)
Log Message:
-----------
Don't barf on unknown LDAP attributes.

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

Modified: twext/trunk/twext/who/ldap/_service.py
===================================================================
--- twext/trunk/twext/who/ldap/_service.py	2014-01-14 20:30:17 UTC (rev 12337)
+++ twext/trunk/twext/who/ldap/_service.py	2014-01-14 21:18:02 UTC (rev 12338)
@@ -322,6 +322,7 @@
             fields = dict([
                 (self._attributeToFieldNameMap[k], v)
                 for k, v in recordData.iteritems()
+                if k in self._attributeToFieldNameMap
             ])
 
             # Make sure the UID is populated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/1f206b8f/attachment.html>


More information about the calendarserver-changes mailing list