[CalendarServer-dev] twistedcaldav/directory/ldapdirectory.py:1267:getGroups empty argument error

Dennison Williams dennison.williams at gmail.com
Fri Feb 8 14:53:36 PST 2013

I think this is a bug, and I have a fix, but I am not sure if it is in
the "right" place.  Anyhow this allows calendarserver to at least to
populate the Group Membership Cache in memcache.  And start up the
network listeners.

I am now seeing other issues with starting the group caching service, so
maybe this does not actually fix the problem.

The two attached files are the patches, directory-4.2-20130208.patch
against the 4.2 branch and directory-main-20130208.patch against the
main development branch (checked out today).


On 01/30/2013 11:42 PM, Dennison Williams wrote:
> On 01/30/2013 10:53 PM, Glyph wrote:
>> On Jan 30, 2013, at 8:06 PM, Dennison Williams
>> <dennison.williams at gmail.com <mailto:dennison.williams at gmail.com>> wrote:
>>> Tracing this all the way up the stack I see tha the getGroups method
>>> receives a guid value of  set([None]), but this is not caught as I think
>>> maybe it should be on line 675
>>> if guids is None:
>>> But because I am not super familar with this application and have
>>> limited familiarity with python I am not sure if this indicates an issue
>>> with my config, my environment, or the code.
>> The LDAP directory is incredibly flexible, and can be coerced to do
>> various insane things by setting up mappings incorrectly.  Having a copy
>> of your caldavd.plist would be helpful when diagnosing this error.
>>  (Actually having a copy of your entire directory along with that would
>> be even more useful, but I presume that isn't possible ;-)).
> Please see attached my caldavd.plist.  I could also send a few sections
> from an ldapsearch query if that was helpful
>> -glyph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: directory-4.2-20130208.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/calendarserver-dev/attachments/20130208/c0e83aad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: directory-main-20130208.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/calendarserver-dev/attachments/20130208/c0e83aad/attachment-0001.bin>

More information about the calendarserver-dev mailing list