[CalendarServer-users] [LDAP] entryUUID not exported

Morgen Sagen sagen at apple.com
Thu Jul 21 12:22:17 PDT 2011


Did you try setting guidAttr to an empty string?

          <key>guidAttr</key>
          <string></string>

In that case, the code will generate a GUID rather than relying on the LDAP server.   I haven't tested in this config so I'm not sure what else will break.

On Jul 21, 2011, at 11:57 AM, Razvan Deaconescu wrote:

> Hi!
> 
> I'm using a LDAP server for user information and authentication.
> However, the entryUUID attribute is not exported through LDAP. I've
> tried not using an attribute:
> 
> ---
> <key>guidAttr</key>
>    <string>entryUUID</string>
> ---
> 
> but it doesn't work. It fails with a trace such as:
> 
> ---
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]        File
> "/usr/lib/twisted-calendarserver/lib/python2.6/site-packages/twistedcaldav/directory/calendar.py",
> line 164, in getChild
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]          return
> self._parent.homeForDirectoryRecord(record)
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]        File
> "/usr/lib/twisted-calendarserver/lib/python2.6/site-packages/twistedcaldav/directory/calendar.py",
> line 122, in homeForDirec
> toryRecord
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]          return
> uidResource.getChild(record.uid)
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]        File
> "/usr/lib/twisted-calendarserver/lib/python2.6/site-packages/twistedcaldav/directory/calendar.py",
> line 226, in getChild
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]          return
> self.provisionChild(name)
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]        File
> "/usr/lib/twisted-calendarserver/lib/python2.6/site-packages/twistedcaldav/static.py",
> line 653, in provisionChild
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]          assert len(name) >
> 4, "Directory record has an invalid GUID: %r" % (name,)
> 2011-07-21 21:38:28+0300 [-] [caldav-8008]
> exceptions.AssertionError: Directory record has an invalid GUID: '9000'
> ---
> 
> Is there any workaround in case the entryUUID attributed is not exported?
> 
> Thanks,
> Razvan
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users



More information about the calendarserver-users mailing list