Version: 1.2

Posted: 2008-03-17

Build Requirements: Xcode 3.0

Runtime Requirements: Mac OS X

View Source Code:

Download Sample (“CryptNoMore.zip”, 75.1K)
Download Sample (“CryptNoMore.dmg”, 139.4K)



Description

With the advent of Mac OS X 10.3, it is no longer possible to authenticate a user (that is, check the validity of their password) using crypt. This sample shows how to authenticate a user using Open Directory (Directory Services).

Document Revision History

Date Notes
2008-03-17Corrected a bug with Open Directory-based authentication that was uncovered by Mac OS X 10.5. Also, Open Directory authentication now works correctly when built 64-bit.
2005-07-26This sample code has been updated to include an Xcode 2.1 project to produce universal binaries. There were no code changes required for it to run correctly on the Developer Transition Systems. However, I did modify the code slightly to eliminate some new warnings produced by GCC 4.0. See the checkin comments in "CryptNoMore.c" for details.
2004-11-05Shows how to authenticate a user using Open Directory (Directory Services).

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.