#45119 [NEW]: Ldap_error always 49

From: Date: Wed, 28 May 2008 17:39:34 +0000
Subject: #45119 [NEW]: Ldap_error always 49
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125327@lists.php.net to get a copy of this message
From: guilherme dot silva at constat dot com dot br Operating system: Fedora Core 6 and Windows 2003 PHP version: 5.2.6 PHP Bug Type: LDAP related Bug description: Ldap_error always 49 Description: ------------ ldap_errono always return the same code 49 after ldap_bind Reproduce code: --------------- $adConection = ldap_connect("ADSERVER"); if (!@ldap_bind($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 bug report at http://bugs.php.net/?id=45119&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45119&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45119&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45119&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45119&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45119&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45119&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45119&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45119&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45119&r=support Expected behavior: http://bugs.php.net/fix.php?id=45119&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45119&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45119&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45119&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45119&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45119&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45119&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45119&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45119&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45119&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45119&r=mysqlcfg

« previous php.bugs (#125327) next »