• 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: Save authentication to keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save authentication to keychain


  • Subject: Re: Save authentication to keychain
  • From: Jerry Brace <email@hidden>
  • Date: Sat, 06 Aug 2005 22:05:20 -0200

Hey James,

Thanks for that info - I am now working through that sample code. I have one question for you. Am I right in assuming that every-time the app is run it will prompt for authentication once and not time out, and if the app is closed and reopened it will prompt again? Or should the user only ever be prompted once and never again - unless their root password changes? I just need to know this to be sure that I'm on the right track. Either of these outcomes would be great for my situation - I just need to eliminate the time out. Just as a FYI - the unix binary I need to run as root is called "wakein" it is from the Power Manager DDK.

Many thanks,
Jerry


On Saturday, August 06, 2005, at 06:13PM, James Bucanek <email@hidden> wrote:

>Jerry Brace wrote on Saturday, August 6, 2005:
>
>>Does anyone know how to save authentication information to the keychain?
>>My app requires access to a unix binary as root and after prompting for authentication it times out after a period
>>of time. I'd like to save that information where the app can retrieve it whenever it needs it. Any ideas?
>
>You can't save an authentication. An authentication is a "ticket" that expires after a period of time. To authorize a binary to run as root forever, you need to authorize the user once and use that privilege to install the binary as a set-UID executable with an owner of root. Once installed, the binary can run as root whenever it needs to, without any additional authorization. Sample code for how to do this can be found here: <http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html>
>--
>James Bucanek
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Save authentication to keychain
      • From: James Bucanek <email@hidden>
    • Re: Save authentication to keychain
      • From: Nick Zitzmann <email@hidden>
References: 
 >Re: Save authentication to keychain (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Using Keys to create Unique Attributes in CoreData?
  • Next by Date: Re: Name of data model file
  • Previous by thread: Re: Save authentication to keychain
  • Next by thread: Re: Save authentication to keychain
  • Index(es):
    • Date
    • Thread