title: How do I check a username/password combination in OS X?
body: <p>In windows I can call <code>LogonUserW</code> or on linux <code>pam_authenticate</code> to check whether a given username/password is correct. How do I do this on OS X (for c/c++)?</p>