ID:               45119
 Updated by:       [EMAIL PROTECTED]
 Reported By:      guilherme dot silva at constat dot com dot br
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: Fedora Core 6 and Windows 2003
 PHP Version:      5.2.6
 New Comment:

1) What was the configure line you used to compile PHP?
2) DOes this happen using PHP CLI?
3) What OpenLDAP libraries are you compiling PHP with? (version!)


Previous Comments:
------------------------------------------------------------------------

[2008-05-28 17:39:34] guilherme dot silva at constat dot com dot br

Description:
------------
ldap_errono always return the same code 49 after ldap_bind

Reproduce code:
---------------
$adConection = ldap_connect("ADSERVER");
if ([EMAIL PROTECTED]($adConection,$user,$passwd)){
            // 19 - Account locked out (too many invalid login attempts)
            // 32 - User does not exist
            // 49 - Wrong password
            // 53 - Account inactive (manually locked)
                        echo ldap_errno($adConexao);
                        die();
                        return false;


Expected result:
----------------
The code above should return the respectives code of error. When i use
a wrong password should return 49, when my account is locked out should
returns 19, when the password is wrong should return 32 and when acount
is inactive should return 53.

Actual result:
--------------
Always return the error code 49, Invalid Credentials


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45119&edit=1

Reply via email to