Summary | wrong error when using smbldap driver and bind as user |
Queue | Passwd |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) , jan (at) horde (dot) org |
Requester | glen (at) delfi (dot) ee |
Created | 08/23/2005 (7279 days ago) |
Due | |
Updated | 09/13/2005 (7258 days ago) |
Assigned | 09/11/2005 (7260 days ago) |
Resolved | 09/13/2005 (7258 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
http://lists.horde.org/archives/sork/Week-of-Mon-20040503/001579.html
I reverted it to the former behaviour because that made more sense to me.
Assigned to
State ⇒ Assigned
fallbacking method, ie if there's no configuration on $userdn try only
anon-bind, and if $userdn set, try only anonymous bind.
if (!is_null($userdn)) {
// do non-anonymous bind
} else {
// do anonymous bind
}
then i think it will work as expected:
1. bind with root user
2. bind with current user
3. anonymous bind
and no hidden catches.
passwords anonymously, but I'm wary of removing functionality that
people need. Please poll the sork list on this.
New Attachment: horde-passwd-noanon-bind.patch
driver will fallback to the anonymous bind, due bind with password
failed.
[Fri Sep 9 01:55:20 2005] [error] PHP Warning: ldap_bind(): Unable
to bind to server: Invalid credentials in
/usr/share/horde/passwd/lib/Driver/ldap.php on line 87
[Fri Sep 9 01:55:20 2005] [error] PHP Warning: ldap_mod_replace():
Modify: Strong(er) authentication required in
/usr/share/horde/passwd/lib/Driver/ldap.php on line 282
// Try to bind as the current userdn with password.
if (!is_null($userdn)) {
$result = @ldap_bind($this->_ds, $userdn, $password);
}
// If unable to bind as current user, still try to bind as
// guest.
if (!$result) {
$result = @ldap_bind($this->_ds);
}
removing the second rebind, the proper error is produced:
" Failure in changing password on delfi.ee domain: Incorrect Password"
State ⇒ Feedback
should be changed? Can you upload a patch?
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ wrong error when using smbldap driver and bind as user
Queue ⇒ Passwd
State ⇒ Unconfirmed
when user fills wrong old password the driver will try to bind
anonymous LDAP user and further modification operation will fail as
there aren't sufficent permissions to update LDAP.
error returned is:
Failure in changing password on delfi.ee domain: Strong(er)
authentication required