From df404d435af20feb02d3fa9f11e9579eae9376cf Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 17 Aug 2009 10:46:22 +1000 Subject: [PATCH] login,attr only applies to user sessions --- lib/ds_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php index ff3d3dc..adaef61 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -253,7 +253,7 @@ class ldap extends DS { # Get the userDN from the username. if (! is_null($user)) { # If login,attr is set to DN, then user should be a DN - if ($this->getValue('login','attr') == 'dn') + if (($this->getValue('login','attr') == 'dn') || $method != 'user') $userDN = $user; else $userDN = $this->getLoginID($user,'anon');