Re: Group Identity Programming [SOLVED]

2009-05-12 Thread Jessica Billings
Just wanted to say thanks for the help. Your solution worked. :) Jessica >CBGroupIdentity is a subclass of CBIdentity. So in the NSArray of >CBIdentity items returned from the identity picker, you test whether >each item is a CBGroupIdentity or not using the normal Objective-C >mechanism: > [so

Re: Group Identity Programming

2009-04-29 Thread Keary Suska
On Apr 29, 2009, at 7:36 AM, Jessica Billings wrote: The third thing I tried is getting the gid using: gid_t curGroupID = getgid(); OR int curGroupID = getgid(); CBGroupIdentity *groupIdentity = [CBGroupIdentity groupIdentityWithPosixGID:curGroupID authority:[CBIdentityAuthority defaultIdentity

Re: Group Identity Programming

2009-04-29 Thread Greg Guerin
Jessica Billings wrote: My ultimate problem is that I have a number of group identities chosen by the identity picker. I need to look at their member lists and see if the logged-in user is in any of those lists. What I can't figure out is how to get access to the member lists of the groups

Re: Group Identity Programming

2009-04-29 Thread Kyle Sluder
On Wed, Apr 29, 2009 at 9:36 AM, Jessica Billings wrote: > What group is this referring to? If I made a local "test_group" and put the > user in that, would it be the gid of "test_group"? What if the user is an > many groups, both local and managed? This is the heart of my problem. Users in UNIX

Re: Group Identity Programming

2009-04-29 Thread Jessica Billings
>> The third thing I tried is getting the gid using: >> gid_t curGroupID = getgid(); OR >> int curGroupID = getgid(); >> CBGroupIdentity *groupIdentity = [CBGroupIdentity >> groupIdentityWithPosixGID:curGroupID authority:[CBIdentityAuthority > defaultIdentityAuthority]]; >> > When I try to show the

Re: Group Identity Programming

2009-04-28 Thread Keary Suska
On Apr 28, 2009, at 8:58 AM, Jessica Billings wrote: I am trying to write a program that, among other things, generates a list of user and group identities using the identity picker and then checks to see if the logged-on user matches any user identity or is a member of any group. I can do

Group Identity Programming

2009-04-28 Thread Jessica Billings
Hi all, First of all, I apologize because I have only been developing Cocoa for a few months and I'm learning as I go. Hopefully I'm not making some newbie mistake. I am trying to write a program that, among other things, generates a list of user and group identities using the identity picker and