Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Just an FYI, I did make the above changes in directory.py and deleted the memberships_cache file and re-ran the server. I still did not get the memberships for uuid "cdaboo" I did print logs after if True to make sure it gets called. I will investigate more but here is the relevant console outpu

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 1:53:10 PM -0800 Gaurav Jain wrote: Thanks a lot...I will change the code Last question "faulted in" means "cache everything" or "dont cache" Cache everything. -- Cyrus Daboo ___ calendarserver-users ma

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Thanks a lot...I will change the code Last question "faulted in" means "cache everything" or "dont cache" Best Regards, On Fri, Dec 5, 2014 at 1:51 PM, Cyrus Daboo wrote: > Hi Gaurav, > > --On December 5, 2014 at 1:35:04 PM -0800 Gaurav Jain < > monkeyfd...@gmail.com> wrote: > > Since I

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 1:35:04 PM -0800 Gaurav Jain wrote: Since I am in development mode and probably will not be dealing with large scale in near future.is there a way I can simply ignore cache or cache everything? cache everything will be better as I am not dealing with

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Since I am in development mode and probably will not be dealing with large scale in near future.is there a way I can simply ignore cache or cache everything? cache everything will be better as I am not dealing with scale for right now. On Fri, Dec 5, 2014 at 1:22 PM, Gaurav Jain wrote: > Pl

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Please note each can client create its own set of groups. On Fri, Dec 5, 2014 at 1:20 PM, Gaurav Jain wrote: > My use case is as follows: > > * iCal client > * CalServer-5.2.2 > * client has a local cache of its 'group memberships' > * client wants to schedule an event for group 'group01' > * Be

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
My use case is as follows: * iCal client * CalServer-5.2.2 * client has a local cache of its 'group memberships' * client wants to schedule an event for group 'group01' * Before it can do so, client need to make sure that it is *still* a member of 'group01' * client treats CalServer as source of t

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 1:05:03 PM -0800 Gaurav Jain wrote: Please see my output below. I did get memberships for 'user01' mentioned in group record 'disabledgroup' OK, so what is going on here is that we have a special group membership caching strategy. Basically, because the

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Please see my output below. I did get memberships for 'user01' mentioned in group record 'disabledgroup' ---user01 start http://localhost:8008/principals/users/user01/ Group members: '() Group memberships: -> (resources)resource01 [c

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 12:38:36 PM -0800 Gaurav Jain wrote: Relevant Group : 'group01' Relevant User : 'cdaboo' Definitely remove the element from the cdaboo user. Restart the server and look at cdaboo, sagen, user01 and user08 in a browser. -- Cyrus Daboo

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
svn info /Users/gauravjain/development/calendar/CalendarServer-5.2.2/conf/auth/accounts-test.xml Path: /Users/gauravjain/development/calendar/CalendarServer-5.2.2/conf/auth/accounts-test.xml Name: accounts-test.xml URL: https://svn.calendarserver.org/repository/calendarserver/CalendarServer/tags/r

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 12:28:19 PM -0800 Gaurav Jain wrote: 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. No that is wrong.

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
Thanks. Referring to dtd, I need to add gauravj gauravj gaur...@example.com test Gaurav Jain Gaurav Jain group01 That means just creating a group with members is not sufficient. Needed to explicitly specify which * which members a group has * wh

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Andre LaBranche
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.or

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
I did try that: For http://localhost:8008/principals/groups/group01/ Group members: -> (users)cdaboo - Cyrus Daboo -> (users)sagen - Morgen Sagen For http://localhost:8008/principals/users/c

Re: [CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Cyrus Daboo
Hi Gaurav, --On December 5, 2014 at 11:51:11 AM -0800 Gaurav Jain wrote: I've set up a group consisting of two members. testGroup testGroup Test Group cdaboo sagen 734BB9B0 On the client, I need to know which groups user 'cdaboo' belongs to? I

[CalendarServer-users] Find group membership of users on client side

2014-12-05 Thread Gaurav Jain
I've set up a group consisting of two members. testGroup testGroup Test Group cdaboo sagen 734BB9B0 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.