$Id$ LDAP user functions.
This file is intended to be used instead of the standard user.php file. I have not tested this yet (I do not have an LDAP server running yet), so please provide feedback.
This file contains all the functions for getting information about users. So, if you want to use an authentication scheme other than the webcal_user table, you can just create a new version of each function found below.
Note: this application assumes that usernames (logins) are unique.
Note #2: If you are using HTTP-based authentication, then you still need these functions and you will still need to add users to webcal_user.
$Log$ Revision 1.2 2010/03/25 00:40:29 dick Apply patch from monnerat Get rid of PHP 5.3 deprecated features - ID: 2873491 https://sourceforge.net/tracker/?func=detail&aid=2873491&group_id=3870&atid=303870
Connects and binds to the LDAP server Tries to connect as $ldap_admin_dn if we set it.
Strip everything but the username (uid) from a dn.
Function to search the dn of a given user the error message will be placed in $error.
Check to see if a given login/crypted password is valid.
Check to see if a given login/password is valid. If invalid,
Documentation generated on Sat, 05 Jun 2010 23:23:32 -0400 by phpDocumentor 1.4.3