From 050f63759c774569e40965ced19b14c86f5e89a8 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 21 Sep 2012 19:37:32 +0200 Subject: [PATCH] Revert du lookup sur adresse mail --- root/usr/share/mozilla-mcd/firefox.php | 10 ++-------- root/usr/share/mozilla-mcd/thunderbird.php | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/root/usr/share/mozilla-mcd/firefox.php b/root/usr/share/mozilla-mcd/firefox.php index 8066fed..93aad45 100644 --- a/root/usr/share/mozilla-mcd/firefox.php +++ b/root/usr/share/mozilla-mcd/firefox.php @@ -17,14 +17,8 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV $result = ldap_search($link, USER_BASE, "uid=" . $uid); $user = ldap_get_entries($link, $result); if($user['count'] == 0) { - // 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; - } + // user not found + exit; } $pref = FF_PREF; // Don't lock pref if the user is member of some special groups diff --git a/root/usr/share/mozilla-mcd/thunderbird.php b/root/usr/share/mozilla-mcd/thunderbird.php index d54470d..8894f93 100644 --- a/root/usr/share/mozilla-mcd/thunderbird.php +++ b/root/usr/share/mozilla-mcd/thunderbird.php @@ -16,14 +16,8 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV $result = ldap_search($link, USER_BASE, "uid=" . $uid); $user = ldap_get_entries($link, $result); if($user['count'] == 0) { - // 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; - } + // user not found + exit; } $pref = TB_PREF; // Don't lock pref if the user is member of some special groups