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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Mar 28 10:01:26 2024 UTC