From 4088cdd817fd2a64b13cefb4acabdf12e3a1afbf Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Fri, 15 Apr 2005 18:40:51 +0000 Subject: [PATCH] =?UTF-8?q?ldap=20compatible=20M$=20Active=20Directory=20(?= =?UTF-8?q?Philippe=20Lara,=20G=C3=A9raud,=20et=20James)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_auth_ldap.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecrire/inc_auth_ldap.php3 b/ecrire/inc_auth_ldap.php3 index a613ec5352..c2eb7e54b7 100644 --- a/ecrire/inc_auth_ldap.php3 +++ b/ecrire/inc_auth_ldap.php3 @@ -37,7 +37,7 @@ class Auth_ldap { if (!$login || !$pass) return false; // Attributs testes pour egalite avec le login - $atts = array('uid', 'login', 'userid', 'cn', 'sn'); + $atts = array('sAMAccountName', 'uid', 'login', 'userid', 'cn', 'sn'); $login_search = ereg_replace("[^-@._[:space:][:alnum:]]", "", $login); // securite // Tenter une recherche pour essayer de retrouver le DN @@ -126,7 +126,7 @@ class Auth_ldap { function activer() { $nom = addslashes($this->nom); - $login = addslashes($this->login); + $login = strtolower(addslashes($this->login)); $email = addslashes($this->email); $bio = addslashes($this->bio); $statut = lire_meta("ldap_statut_import"); -- GitLab