[CalendarServer-users] Working with Group Calendars
Tyler Keating
tylerkeating at mac.com
Tue Feb 27 15:30:38 PST 2007
> On Feb 27, 2007, at 5:51 PM, Tyler Keating wrote:
>
>>> Hi,
>>>
>>> I'm having trouble accessing group calendars. So far I've
>>> implemented a custom directory service tied to my application,
>>> but when a member tries to access their group's calendar, I get a
>>> "403 Forbidden" response. The custom directory service is
>>> properly returning the set of members for the group and then the
>>> DirectoryRecords for each member in the group. I've verified
>>> that the groupMembers() method in principal.py returns the proper
>>> DirectoryPrincipalResources of the members as well. I don't know
>>> if it's an issue with the directory service, but I thought I'd
>>> mention it anyway.
>>>
>>> Can someone please explain what I'm missing?
>>>
>>> - Tyler Keating
>>
>> I just noticed that I haven't implemented 'guid' in my directory
>> service (which was based on an older version of sqldb). Maybe
>> this is the issue? I'll get to work adding it anyhow.
>>
>> - Tyler
>
On 27-Feb-07, at 5:18 PM, Gary King wrote:
> If the GUID is the issue for this problem, could it also be the
> issue for mine (http://trac.macosforge.org/projects/calendarserver/
> ticket/134). One of the first
> log messages I get when I connect is
>
>> 2007/02/27 19:16 -0400 [HTTPChannel,0,127.0.0.1] GET / HTTP/1.1
>> 2007/02/27 19:17 -0400 [HTTPChannel,1,127.0.0.1] GET /holidays.ics
>> HTTP/1.1
>> 2007/02/27 19:17 -0400 [HTTPChannel,2,127.0.0.1] GET /holidays.ics
>> HTTP/1.1
>> 2007/02/27 19:17 -0400 [HTTPChannel,2,127.0.0.1] "Directory
>> service <XMLDirectoryService 'Test Realm': FilePath('/repository/
>> svn/CalendarServer/conf/accounts-test.xml')> has no GUID;
>> generating service GUID from realm name."
>> 2007/02/27 19:17 -0400 [HTTPChannel,2,127.0.0.1] "Attempt to
>> create clone '/repository/svn/CalendarServer/twistedcaldav/test/
>> data/principals/user' of resource
>> <DirectoryPrincipalProvisioningResource: /repository/svn/
>> CalendarServer/twistedcaldav/test/data/principals>"
>
My brain is seriously fried right now, but I'm pretty sure that the
'guid' for each record doesn't actually matter, since I see that it
is auto-generated. For your issue, you need to add a guid property
in your DirectoryService implementation, like 'guid = "012345678-9abc-
def0-1234-56789abcdef0"'.
- Tyler
More information about the calendarserver-users
mailing list