My project is to make a module enrollment system for our university. So I contacted the IT people in my university for details to authenticate the students into the system.
You might try http://code.activestate.com/recipes/101525/ while referring to http://us3.php.net/ldap and other results from a Google search for [php ldap authentication].