AuthorizationExecuteWithPrivileges
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.