hi, I want to run an application such that it will pop-up for the admin user name and password(authentication) when run by nonadmin (standard )login.
let me explain what i am doing:- - (BOOL)Authenticate { AuthorizationRights myRights; AuthorizationItem myItems[1]; AuthorizationRef authorizationRef; OSStatus err; AuthorizationFlags authFlags = kAuthorizationFlagInteractionAllowed | kAuthorizationFlagExtendRights; BOOL bRet; myItems[0].name = kAuthorizationRightExecute; myItems[0].valueLength = 0; myItems[0].value = NULL; myItems[0].flags = 0; char * rmArgs[2]; // int status; rmArgs[0] = "-l"; rmArgs[1] = NULL; // rmArgs[2] = NULL; myRights.count = sizeof(myItems) / sizeof(myItems[0]); myRights.items = myItems; err = AuthorizationCreate(&myRights, kAuthorizationEmptyEnvironment, authFlags, &authorizationRef); return bRet; } Can anyone tell the required modification so that i can make it work the way mentioned above or some other way by which i can achieve the needful. thanks in advance _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]