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

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

  • Prev by Date: Re: NSTableView blurry contents
  • Next by Date: trying to capture doc info at close/quit time
  • Previous by thread: CoreData: sporadically messages zombie when adding persistent xml store?
  • Next by thread: trying to capture doc info at close/quit time
  • Index(es):
    • Date
    • Thread