Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Red shirt stuff



Steve,
Thanks for the link - I copied Mike's script - it's great, and I'll definitely be using it at some point in time in the future - but it does something other than what I need. His script will verify the admin password. What I need to do is ask the user to enter a password, and then have the program remember that password, even after the user quits the program. Just like an e-mail client works - you put your password in and tell it to remember your password, and it does, and you don't have to put it in again.

I looked at the keychain, but that solution would require the user to use keychain, which some users do not like to use.

Back to ye old drawing board...

--
Richard MacLemale
Mac Network Admin
http://homepage.mac.com/richardmaclemale




On Dec 29, 2003, at 12:56 PM, S. Elliott wrote:

Richard,

Mike Bombich posted a really nice solution for this situation to the list about 6 months ago. It's available here: <http://lists.apple.com/archives/applescript-studio/2003/Jun/06/ adminprivilegesquestion.txt>

This allows you to validate a candidate password and then store it as a variable for use in calling shell scripts later in your application. I use some similarly-developed code and it works quite well; in all the versions/updates for Jaguar and Panther rolled together it hasn't yet broken.

Practically, the password is stored as a plain-text variable in runtime memory, so it's not encoded or encrypted after it's returned from this routine. Though you'd have to be doing a good bit or work to have access to memory and runtime variables within a running application to get at that...

Best,

Steve Elliott
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Red shirt stuff (From: Richard MacLemale <email@hidden>)
 >Re: Red shirt stuff (From: "S. Elliott" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.