[CalendarServer-users] Find group membership of users on client side
Gaurav Jain
monkeyfdude at gmail.com
Fri Dec 5 12:28:19 PST 2014
Thanks. Referring to dtd, I need to add
<user>
<uid>gauravj</uid>
<guid>gauravj</guid>
<email-address>gauravj at example.com</email-address>
<password>test</password>
<name>Gaurav Jain</name>
<first-name>Gaurav</first-name>
<last-name>Jain</last-name>
<members>
<member type="groups">group01</member>
</members>
</user>
That means just creating a group with members is not sufficient. Needed to
explicitly specify which
* which members a group has
* which groups a user belong to.
I hope my understanding is correct.
Regards,
On Fri, Dec 5, 2014 at 12:22 PM, Andre LaBranche <dre at apple.com> wrote:
> Hi,
>
> To check your accounts.xml configuration, probably the best documentation
> is:
>
>
> http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml
>
> and
>
>
> http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd
>
> -dre
>
> On Dec 5, 2014, at 12:15 PM, Gaurav Jain <monkeyfdude at gmail.com> wrote:
>
> I did try that:
>
> For http://localhost:8008/principals/groups/group01/
>
> Group members:
> -> (users)cdaboo - Cyrus Daboo <http://localhost:8008/principals/__uids__/cdaboo/>
> -> (users)sagen - Morgen Sagen <http://localhost:8008/principals/__uids__/sagen/>
>
>
> For http://localhost:8008/principals/users/cdaboo/
>
> Group members:
> '()
>
> Group memberships:
> '()
>
>
> I only specified 'members' in a 'group'.
>
> Do I also need to specify 'memberships' for a 'user'?
>
> Could you also please point me to any doc around this?
>
>
> Thanks again!
>
>
>
> On Fri, Dec 5, 2014 at 12:10 PM, Cyrus Daboo <cdaboo at apple.com> wrote:
>
>> Hi Gaurav,
>>
>>
>> --On December 5, 2014 at 11:51:11 AM -0800 Gaurav Jain <
>> monkeyfdude at gmail.com> wrote:
>>
>> I've set up a group consisting of two members.
>>>
>>> <group>
>>> <uid>testGroup</uid>
>>> <password>testGroup</password>
>>> <name>Test Group</name>
>>> <members>
>>> <member type="users">cdaboo</member>
>>> <member type="users">sagen</member>
>>> </members>
>>> <guid>734BB9B0</guid>
>>> </group>
>>>
>>>
>>> On the client, I need to know which groups user 'cdaboo' belongs to?
>>>
>>> I tried 'allprop' for '/principals/users/cdaboo/' but it did not return
>>> any group.
>>>
>>
>> Pull up /principals/users/xxxx/ in a web browser. You should see a
>> DAV:membership property listing the groups that principal is a member of.
>> Note that "allprop" does not return all properties! Some properties are
>> explicitly defined to not appear in "allprop".
>>
>> --
>> Cyrus Daboo
>>
>>
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-users/attachments/20141205/0475095e/attachment-0001.html>
More information about the calendarserver-users
mailing list