Re: Authentication only for non admin login.
Re: Authentication only for non admin login.
- Subject: Re: Authentication only for non admin login.
- From: "Michael Ash" <email@hidden>
- Date: Fri, 18 Jul 2008 11:39:03 -0400
On Fri, Jul 18, 2008 at 4:02 AM, ninad walvekar <email@hidden> wrote:
> hi,
> I think I have precisely mentioned what I want to do in the first 2 lines of
> my previous post. To add to it my current implementation is asking for a
> user name and password for admin as well as standard user login i want it to
> ask for a user name and password only for and only for standard user login.
>
> Can anyone tell me a way to identify which user(root/admin/standard) has
> logged?
The simplest and most reliable technique is to simply attempt whatever
it is you're doing without authorizing. If it worked then you already
have the permissions you need. If it fails then authorize and try it
again.
Mike
_______________________________________________
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