Re: List of User Accounts
Re: List of User Accounts
- Subject: Re: List of User Accounts
- From: Matt Jaffa <email@hidden>
- Date: Fri, 26 Mar 2004 22:32:19 -0700
This code works Great,
except if I go to accounts and change the users Limitations to
Managed, instead of standard,
it freezes and goes into an infinite loop.
On Mar 23, 2004, at 7:21 PM, Gwynne wrote:
On Mar 23, 2004, at 8:56 PM, Matt Jaffa wrote:
yeah, could you send me off list the sample code,
Gladly :). It's attached to this message. It's a simple UNIX tool that
will printf all the users on the system, whether they're system or
real users, and their user IDs. This is probably slightly more than
you need, but it's easy to cut out the stuff you don't. Note that this
code does NOT do error checking, because that makes DS code about four
times longer. I'm assuming you're intelligent enough to check for
error/NULL returns from the functions :). Also note, a significant
portion of this code is ripped from the DS documentation.
<dslst> <dslst.c>
On Mar 23, 2004, at 6:49 PM, Gwynne wrote:
Ask for the kDS1AttrGeneratedUID attribute and discard anything that
doesn't have it. You'll need to filter out "root", though, since for
some reason it gets it too. I can send you some sample code off-list
if you need it.
-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web: http://musicimage.plasticchicken.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.