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: Where does the login name and password are stored




On Oct 30, 2009, at 10:53 PM, Dhruva T S wrote:

Is there a way to get the user login name and password using objective-C,
after the user logs in?

NSUserName() returns the username. As far as I know, there is no way to get the password, for security reasons. You should prompt the user for their LDAP password, then use the SecKeychain APIs to save the password; that way the user only has to enter it the first time the app launches.


—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to 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.