Authorization error -60031
Authorization error -60031
- Subject: Authorization error -60031
- From: email@hidden
- Date: Wed, 17 Aug 2005 18:59:31 +0000
I am attempting to run a tool from Cocoa that requires administrator rights. So what my application does is:
The user enters data into the UI and clicks "Go"
The UI threads spins off a new thread
The new thread then performs:
AuthorizationCreate()
AuthorizationCopyRights()
AuthorizationExecuteWithPrivileges()
After the authentication I get back the error: -60031
AuthorizationFree()
So the new thread is created and it runs the commands, and then quits. Here is the interesting thing - if I run this 3 times, on the third time it works.
Any ideas?
Thanks in advance!
Kris
_______________________________________________
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