function authentification_ldap_conges($username, $password) { require_once LIBRARY_PATH . 'authLDAP.php'; $a = new authLDAP(); //$a->DEBUG = 1; //$a->bind($username,$password); $a->bind($username, stripslashes($password)); if ($a->is_authentificated()) { return $username; } return ''; }