Summary | Inconsistent use of $user & $username in passwd/lib/Driver/Ldap.php |
Queue | Passwd |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | adorman (at) ironicdesign (dot) com |
Created | 07/31/2013 (4356 days ago) |
Due | |
Updated | 08/01/2013 (4355 days ago) |
Assigned | |
Resolved | 08/01/2013 (4355 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
https://github.com/horde/horde/commit/a6cc00a83599434e441b824050248a2b7334b2cd
put the variables to $username now it's back to $user?
#12331was an incorrect fix. Passwd_Driver_Ldap inherits fromPasswd_Driver. In Passwd_Driver, $user is used. Using anything else
will throw PHP strict warnings since the method signatures do not match.
https://github.com/horde/horde/commit/a6cc00a83599434e441b824050248a2b7334b2cd
put the variables to $username now it's back to $user?
Assigned to Michael Slusarz <slusarz@horde.org>
State ⇒ Resolved
Priority ⇒ 1. Low
commit 0114ff62b9103f2c4b39c9867d6651f5d8c080e7
Author: Michael M Slusarz <slusarz@horde.org>
Date: Wed Jul 31 18:25:13 2013 -0600
Bug #12519: match abstract method prototypepasswd/lib/Driver/Kolab.php | 6 +++---
passwd/lib/Driver/Ldap.php | 10 +++++-----
passwd/lib/Driver/Smbpasswd.php | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
http://git.horde.org/horde-git/-/commit/0114ff62b9103f2c4b39c9867d6651f5d8c080e7
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Inconsistent use of $user & $username in passwd/lib/Driver/Ldap.php
Queue ⇒ Passwd
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
accepts $user as input, but it uses $username in a couple of places
where it should be using $user. This causes an incorrect user on line
101 and empty userdn on line 110.
Sorry I do not have a full patch...But here is a diff showing the fixed lines.
diff ../Ldap.php.old ../Ldap.php.new
101c101
< $username .= '@' . $this->_params['realm'];
---
< // $this->_userdn = $this->_ldap->findUserDN($username);
< $this->_userdn = $this->_params['uid'] . '=' . $username
. ',' . $this->_params['basedn'];
---
$this->_userdn = $this->_params['uid'] . '=' . $user .
',' . $this->_params['basedn'];