• 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
AuthorizationExecuteWithPrivileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthorizationExecuteWithPrivileges


  • Subject: AuthorizationExecuteWithPrivileges
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 8 Apr 2004 12:30:26 -0700

I am trying to use AuthorizationExecuteWithPrivileges() however, I am
running into a problem where I am getting the authorization dialog twice.

I am authorizing for two items. One for a tool to be run as root and
another for system.preference. I try and do clear the authorization
credential ahead of time before calling
AuthorizationExecuteWithPrivileges() by calling AuthorizationCopyRights().

AuthorizationCopyRights() puts of the login dialog and returns no errors.
I even double check by calling AuthorizationCopyRights() afterwards with
kAuthorizationFlagInteractionAllowed cleared. This also returns no error.

However, when I call AuthorizationExecuteWithPrivileges() I still get the
login dialog.

I'm terribly confused.

Are there any suggestions for what I could be doing wrong?


...Duane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: How to set PPP remote address with Internet Connect
  • Next by Date: AFP tuning
  • Previous by thread: How to set PPP remote address with Internet Connect
  • Next by thread: AFP tuning
  • Index(es):
    • Date
    • Thread