From 229febd1e0c46a23eb6fcd50a7f13fca776e6434 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 21 Sep 2012 11:38:10 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20l'UID=20des=20utilisateurs=20?= =?UTF-8?q?si=20une=20adresse=20mail=20est=20pass=C3=A9e=20en=20param?= =?UTF-8?q?=C3=A8tre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root/usr/share/mozilla-mcd/firefox.php | 1 + root/usr/share/mozilla-mcd/thunderbird.php | 1 + 2 files changed, 2 insertions(+) diff --git a/root/usr/share/mozilla-mcd/firefox.php b/root/usr/share/mozilla-mcd/firefox.php index 16e568b..8066fed 100644 --- a/root/usr/share/mozilla-mcd/firefox.php +++ b/root/usr/share/mozilla-mcd/firefox.php @@ -20,6 +20,7 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV // Search for the mail address $result = ldap_search($link, USER_BASE, "mail=" . $_SERVER['QUERY_STRING']); $user = ldap_get_entries($link, $result); + $uid = $user[0]['uid'][0]; if($user['count'] != 1) { // user not found or multiple result found exit; diff --git a/root/usr/share/mozilla-mcd/thunderbird.php b/root/usr/share/mozilla-mcd/thunderbird.php index 75b2ecc..d54470d 100644 --- a/root/usr/share/mozilla-mcd/thunderbird.php +++ b/root/usr/share/mozilla-mcd/thunderbird.php @@ -19,6 +19,7 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV // Search for the mail address $result = ldap_search($link, USER_BASE, "mail=" . $_SERVER['QUERY_STRING']); $user = ldap_get_entries($link, $result); + $uid = $user[0]['uid'][0]; if($user['count'] != 1) { // user not found or multiple result found exit;