|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-15 21:05 UTC] jani@php.net
[2008-07-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 19:00:01 2025 UTC |
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