Validate a Password
Validate a Password
- Subject: Validate a Password
- From: David Blanton <email@hidden>
- Date: Tue, 05 Aug 2003 12:13:29 -0600
Howdy from New Mexico!
I need to validate a password before dispatching a NSTask. Looking up
authenticate in AppKiDo I don't see anything that gets me to a password
file. How does one validate a password for a given user thru Cocoa?
// get the password
NSString * user_password = [m_password stringValue];
...
[removeMRTask launch]; -> a script (see below)
<--- The Script run by removeMRTask -->
sudo -S rm -R /Library/Frameworks/JbLib.framework
I have set up stdin as a pipe and written user_password to it so that
the -S (read passwsord from stdin) works for sudo ... I would like to
validate the password before launching the task and having to wait for a
return of 1 that says something is wrong in the script execution.
Thanks in advance!
--
David Blanton
"Cocoa FNG"
_______________________________________________
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.