Summary | LDAP-specific user existence method in LDAP driver |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | marco (at) csita (dot) unige (dot) it |
Created | 01/27/2012 (4908 days ago) |
Due | |
Updated | 02/01/2012 (4903 days ago) |
Assigned | |
Resolved | 01/30/2012 (4905 days ago) |
Milestone | |
Patch | Yes |
commit 5e798939890d0bf46aaefa30517c70c9034d631c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:22:26 2012 +0100
Fix catching exception, check if logger exists (
Request #10944).framework/Auth/lib/Horde/Auth/Ldap.php | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
http://git.horde.org/horde-git/-/commit/5e798939890d0bf46aaefa30517c70c9034d631c
commit ec3f2fcc9afb02395eaf2e53c329687427baa93c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:18:36 2012 +0100
[jan] Add optimized exists() implementation to LDAP driver (Marco
Ferrante <marco@csita.unige.it>,
Request #10944).framework/Auth/package.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/ec3f2fcc9afb02395eaf2e53c329687427baa93c
commit fb0aea01f7b691df7c311c3c906712a51640fafb
Author: Marco Ferrante <marco@csita.unige.it>
Date: Fri Jan 27 11:23:04 2012 +0100
Implemented method exists() in Ldap driver
Signed-off-by: Jan Schneider <jan@horde.org>
Bug: 10944framework/Auth/lib/Horde/Auth/Ldap.php | 36
++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/fb0aea01f7b691df7c311c3c906712a51640fafb
commit 5e798939890d0bf46aaefa30517c70c9034d631c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:22:26 2012 +0100
Fix catching exception, check if logger exists (
Request #10944).framework/Auth/lib/Horde/Auth/Ldap.php | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
http://git.horde.org/horde-git/-/commit/5e798939890d0bf46aaefa30517c70c9034d631c
commit ec3f2fcc9afb02395eaf2e53c329687427baa93c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:18:36 2012 +0100
[jan] Add optimized exists() implementation to LDAP driver (Marco
Ferrante <marco@csita.unige.it>,
Request #10944).framework/Auth/package.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/ec3f2fcc9afb02395eaf2e53c329687427baa93c
commit fb0aea01f7b691df7c311c3c906712a51640fafb
Author: Marco Ferrante <marco@csita.unige.it>
Date: Fri Jan 27 11:23:04 2012 +0100
Implemented method exists() in Ldap driver
Signed-off-by: Jan Schneider <jan@horde.org>
Bug: 10944framework/Auth/lib/Horde/Auth/Ldap.php | 36
++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/fb0aea01f7b691df7c311c3c906712a51640fafb
implemented in the invoker side (e.g. the readPermsForm() method of
the module Kronolith).
Thus the problem is very LDAP-specific, because it supports user list
but it could return a incomplete list. My patch should solve the
problem.
Queue ⇒ Horde Framework Packages
State ⇒ Resolved
commit 5e798939890d0bf46aaefa30517c70c9034d631c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:22:26 2012 +0100
Fix catching exception, check if logger exists (
Request #10944).framework/Auth/lib/Horde/Auth/Ldap.php | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
http://git.horde.org/horde-git/-/commit/5e798939890d0bf46aaefa30517c70c9034d631c
commit ec3f2fcc9afb02395eaf2e53c329687427baa93c
Author: Jan Schneider <jan@horde.org>
Date: Mon Jan 30 14:18:36 2012 +0100
[jan] Add optimized exists() implementation to LDAP driver (Marco
Ferrante <marco@csita.unige.it>,
Request #10944).framework/Auth/package.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/ec3f2fcc9afb02395eaf2e53c329687427baa93c
commit fb0aea01f7b691df7c311c3c906712a51640fafb
Author: Marco Ferrante <marco@csita.unige.it>
Date: Fri Jan 27 11:23:04 2012 +0100
Implemented method exists() in Ldap driver
Signed-off-by: Jan Schneider <jan@horde.org>
Bug: 10944framework/Auth/lib/Horde/Auth/Ldap.php | 36
++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/fb0aea01f7b691df7c311c3c906712a51640fafb
driver that doesn't implement exists() natively.
suboptimal with LDAP and AD.
user. Which still doesn't make it wrong.
New Attachment: 0001-Implemented-method-exists-in-Ldap-driver.patch
driver that doesn't implement exists() natively.
suboptimal with LDAP and AD.
It should be used only in driver with hasCapability('list') true?
Priority ⇒ 1. Low
State ⇒ Feedback
at least):
driver that doesn't implement exists() natively.
using an LDAP-specific implementation.
Priority ⇒ 3. High
State ⇒ New
Patch ⇒ Yes
Milestone ⇒
Summary ⇒ LDAP-specific user existence method in LDAP driver
Type ⇒ Enhancement
Queue ⇒ Horde Base
from Horde_Auth_Base. It transfers via listUsers() the full user list
from the LDAP backend and then check for the presence of the
$userId in the resulting array .
I think that this implementation of exists() is wrong (for LDAP backend,
at least):
- an LDAP system could have thousand of users, with only few using IMP
webmail: it is useless and resource-demanding to transfer all users in
order to check the presence of only one of them;
- likely LDAP servers have some administrative limit in the size of a
search result and the resulting list could be incomplete producing false
negative in the presence check.
It is possible this is the cause of
bug #7640.The attached a patch for the Horde/Auth/Ldap.php file to handles exists()
using an LDAP-specific implementation.