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

Dennison Williams dennison.williams at gmail.com
Thu Jan 31 09:38:37 PST 2013

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 also included a ldapsearch
result for the following query which shows how I am mapping the schema

ldapsearch -x -h ad.meow.com -D 'auth' -w 'also_not_the_real_pass' -b
'cn=Users,dc=meow,dc=comm' '(&(objectClass=user)(sAMAccountName=Meow))'

# extended LDIF
# LDAPv3
# base <cn=Users,dc=meow,dc=com> with scope subtree
# filter: (&(objectClass=user)(sAMAccountName=Meow))
# requesting: ALL

# Meow Meow, Users, meow.com
dn: CN=Meow Meow,CN=Users,DC=meow,DC=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Meow Meow
sn: Account
givenName: Nagios
distinguishedName: CN=Meow Meow,CN=Users,DC=meow,DC=com
instanceType: 4
whenCreated: 20111017230846.0Z
whenChanged: 20121023162519.0Z
displayName: Nagios Test Account
uSNCreated: 12446
memberOf: CN=VPN Users,CN=Users,DC=meow,DC=com
uSNChanged: 304005
homeMTA: CN=Microsoft MTA,CN=AD,CN=Servers,CN=First Administrative Group
 ,CN=Administrative Groups,CN=AD,CN=Microsoft Exchange,CN=Services,CN=
proxyAddresses: SMTP:nagios at meow.com
proxyAddresses: smtp:meow at meow.com
proxyAddresses: smtp:meow at meow.com
proxyAddresses: X400:c=US;a= ;p=meow;o=Exchange;s=Meow;g=Meow;
homeMDB: CN=Mailbox Store (AD),CN=First Storage Group,CN=InformationStor
 e,CN=AD,CN=Servers,CN=First Administrative Group,CN=Administrative Grou
mDBUseDefaults: TRUE
mailNickname: meow
name: Meow Meow
objectGUID:: Kyz0aVBh5EGXjCt6tGMacw==
userAccountControl: 512
badPwdCount: 1
codePage: 0
countryCode: 0
badPasswordTime: 129958397349055788
pwdLastSet: 129945378370161242
primaryGroupID: 513
accountExpires: 9223372036854775807
sAMAccountName: meow
sAMAccountType: 805306368
showInAddressBook: CN=Default Global Address List,CN=All Global Address
 CN=Address Lists Container,CN=meow,CN=Microsoft Exchange,CN=Services,CN
showInAddressBook: CN=All Users,CN=All Address Lists,CN=Address Lists
 r,CN=meow,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=meow,DC=com
legacyExchangeDN: /o=meow/ou=First Administrative Group/cn=Recipients/cn
userPrincipalName: meow at meow.com
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=meow,DC=com
dSCorePropagationData: 16010101000000.0Z
lastLogonTimestamp: 129954831103763747
textEncodedORAddress: c=US;a= ;p=meow;o=Exchange;s=Meow;g=Meow;
mail: nagios at meow.com
msExchHomeServerName: /o=meow/ou=First Administrative Group/cn=Configura
msExchALObjectVersion: 49
msExchUserAccountControl: 0
msExchMailboxGuid:: vLqtcArWMkGG0dYMJAcWyw==

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

> -glyph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: caldavd.plist
Type: text/xml
Size: 28049 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/calendarserver-dev/attachments/20130131/786ceecf/attachment-0001.xml>

More information about the calendarserver-dev mailing list