• 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: how to invoke the authentication dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to invoke the authentication dialog


  • Subject: Re: how to invoke the authentication dialog
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 15 Jul 2008 12:28:57 +0200

Le 15 juil. 08 à 12:14, 李国良 a écrit :

maybe the system have such kind of API that used to popup dialog for
authentication, i means if the user want to run an application which need
the administrator access right, so this dialog popup and request the
administrator's password.
my question is that i can not find out such API, can anyone help me? i



There is a generic C API in Security Framework and objc conterpart in SecurityFoundation, but it depends what you need.
reading/writing a file, change the setuid flags on an helper tools, accessing other task…
Each dialog requires different rights and some priviledged operations have some built-in helper tools or specific API that can be used.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >how to invoke the authentication dialog (From: "李国良" <email@hidden>)

  • Prev by Date: how to invoke the authentication dialog
  • Next by Date: Keypaths
  • Previous by thread: how to invoke the authentication dialog
  • Next by thread: Keypaths
  • Index(es):
    • Date
    • Thread