I've been doing a bit of searching around and I see a lot of builtin PHP functions to authenticate using a LDAP server. Is there a method to interface with the Linux authentication to test a user/password against a linux username/password using PHP? I'm going to use Linux to store my user and password database instead of an external server. Thanks.
There's the php LDAP library: http://www.php.net/ldap In my experience it's somewhat difficult to work with, but it should work with most LDAP directory structures.
Two ways to do it: 1. Query the LDAP server directly using the LDAP library in PHP. us3.php.net/manual/en/ref.ldap.php 2. Use mod_autnnz_ldap in Apache to authenticate and then use the http authentication hooks in PHP to verify. httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html us3.php.net/features.http-auth