• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List of User Accounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >List of User Accounts (From: Matt Jaffa <email@hidden>)
 >Re: List of User Accounts (From: Gwynne <email@hidden>)
 >Re: List of User Accounts (From: Matt Jaffa <email@hidden>)
 >Re: List of User Accounts (From: Gwynne <email@hidden>)

  • Prev by Date: Re: Split Views
  • Next by Date: Fwd: List of User Accounts
  • Previous by thread: Re: List of User Accounts
  • Next by thread: Fwd: List of User Accounts
  • Index(es):
    • Date
    • Thread