• 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
Fwd: List of User Accounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: List of User Accounts


  • Subject: Fwd: List of User Accounts
  • From: Matt Jaffa <email@hidden>
  • Date: Fri, 26 Mar 2004 22:38:15 -0700

Nevermind I got it to work,
I just increased the size of the data buffer and it didn't freeze
anymore in the loop.

So Is it smart to make that buffer extremely bug, in case a customer
has many
accounts on their computers that are managed?

It seems managed accounts have more data about a user to be extracted.

Matt

Begin forwarded message:

> From: Matt Jaffa <email@hidden>
> Date: March 26, 2004 10:32:19 PM MST
> To: Gwynne <email@hidden>
> Cc: Jason Townsend <email@hidden>, Cocoa-Dev List
> <email@hidden>
> Subject: Re: List of User Accounts
>
> 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.


  • Follow-Ups:
    • Array Sizes (was Re: List of User Accounts)
      • From: Robin Perkins <email@hidden>
  • Prev by Date: Re: List of User Accounts
  • Next by Date: Re: controls not rendered, sometimes
  • Previous by thread: Re: List of User Accounts
  • Next by thread: Array Sizes (was Re: List of User Accounts)
  • Index(es):
    • Date
    • Thread