[Tickets #2502] wrong error when using smbldap driver and bind as user

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Sep 8 15:59:11 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2502
-----------------------------------------------------------------------
 Ticket             | 2502
 Updated By         | glen at delfi.ee
 Summary            | wrong error when using smbldap driver and bind as user
 Queue              | Passwd
 Version            | HEAD
 State              | Feedback
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
+New Attachment     | horde-passwd-noanon-bind.patch
-----------------------------------------------------------------------


glen at delfi.ee (2005-09-08 15:59) wrote:

if you go change the password, and fill wrong "old password" the ldap 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"





More information about the bugs mailing list