• 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
AuthorizationCreate return code -67049
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthorizationCreate return code -67049


  • Subject: AuthorizationCreate return code -67049
  • From: Vera Tkachenko <email@hidden>
  • Date: Wed, 23 Dec 2009 14:06:43 +0200

Hello everyone!

In my application I need to execute command with privileges using AuthorizationExecuteWithPrivileges.
To obtain authorization reference from system I use the following code

		const AuthorizationRights* kNoRightsSpecified = NULL;
		OSStatus err = AuthorizationCreate(kNoRightsSpecified, AuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authorizationRef);
		if (err == errAuthorizationSuccess) {
			NSLog(@"Authorization created. Will try to copy rights");
			<copy rights>
		}
		else {
			NSLog(@"Authorized Failed: error %i ", err);
		}

And sometimes get the following error from users:

"Authorized Failed: error -67049"

So, AuthorizationCreate returns -67049 and I can't find this error code in documentation/headers.
Does anyone know where to find explanation for this error code?

Thanks,
Vera Tkachenko_______________________________________________

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

  • Prev by Date: Re: Are views active or inactive?
  • Next by Date: Re: storing ivars in core data docs
  • Previous by thread: Re: NSObjectController mapped to NSArrayController selection
  • Next by thread: Cocoa bindings and Core Data
  • Index(es):
    • Date
    • Thread