• 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
Re: Authenthicate only once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authenthicate only once


  • Subject: Re: Authenthicate only once
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 20 Jan 2004 17:20:01 -0800

On Jan 20, 2004, at 4:55 AM, Vincent Pottier wrote:

My problem is: each time I want to add an ipfw rule, an administrator
password is requiered, i would like to know how to implemente those
method without requering an password or requiering a password only
once.

Try pre-autorizing the AuthorizationRef using AuthorizationCopyRights() and the following flags: kAuthorizationFlagDefaults, kAuthorizationFlagPreAuthorize, kAuthorizationFlagInteractionAllowed, and kAuthorizationFlagExtendRights.

Then it will ask once and retain those rights for several minutes. After that time, though, the rights will expire and AEWP() will ask for a password again... After re-entering the password, the rights will last for several more minutes, and the cycle repeats. It's certainly preferable to entering the password every time...

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Authenthicate only once
      • From: OL&L Dev 2 <email@hidden>
References: 
 >Authenthicate only once (From: Vincent Pottier <email@hidden>)

  • Prev by Date: Re: Q: how do you generate get/set methods?
  • Next by Date: Re: *****SPAM*****How to convince company I should switch to Cocoa
  • Previous by thread: Authenthicate only once
  • Next by thread: Re: Authenthicate only once
  • Index(es):
    • Date
    • Thread