php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45119 Ldap_error always 49
Submitted: 2008-05-28 17:39 UTC Modified: 2008-07-23 01:00 UTC
From: guilherme dot silva at constat dot com dot br Assigned:
Status: No Feedback Package: LDAP related
PHP Version: 5.2.6 OS: Fedora Core 6 and Windows 2003
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: guilherme dot silva at constat dot com dot br
New email:
PHP Version: OS:

 

 [2008-05-28 17:39 UTC] 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 (!@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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-15 21:05 UTC] jani@php.net
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!)
 [2008-07-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC