site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AccH5b/K/qEWhnPYEduSGAAWy6NyrA== Thread-topic: Administrator password User-agent: Microsoft-Entourage/11.2.5.060620 on 06/11/14 5:12, Quinn at eskimo1@apple.com wrote:
this topic's hardly kernel related...
Yes, it looks like we've wandered into the Apple-CDSA topic?
Please do not use NetInfo for this sort of stuff...
OK, I get it.
To validate a password programmatically, use the code from CryptNoMore.
<http://developer.apple.com/samplecode/CryptNoMore/index.html>
This is quite interesting code; I'm beginning to understand the relative uses of OpenDirectory, PAM and Crypt. But chkpasswd seems to work fine in my program. Is there a reason to not "just" call chkpasswd()?
To [ check whether a user is a member of a group] programmatically, just use <x-man-page://3/getgrgid> (or <x-man-page://3/getgrnam>).
Good! This is what I've done, using getgrnam. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com