|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #38864 LDAP error message incomplete
Submitted: 2006-09-18 08:38 UTC Modified: 2015-06-17 13:45 UTC
Avg. Score:4.8 ± 0.4
Reproduced:3 of 4 (75.0%)
Same Version:0 (0.0%)
Same OS:2 (66.7%)
From: Assigned: mcmic (profile)
Status: Closed Package: LDAP related
PHP Version: 5CVS-2006-09-18 (CVS) OS: *
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.
Bug Type:
New email:
PHP Version: OS:


 [2006-09-18 08:38 UTC]
Quote from original bug/feature request reporter:

"if i have an datatype, that has for exaple a syntax to
be a number, and not to be empty phpldapadmin prints
out the error, but not the "additional information", in
comparison to the ldapadd, which does:

phpldapadmin error message:
Could not add object: <some dn>

LDAP said: Invalid syntax
Error number: 0x15 (LDAP_INVALID_SYNTAX)
Description: An invalid attribute value was specified. 

ldapadd error message with the same ldif:
ldapadd -H ldap://  -f foo  -D
"cn=admin,dc=loginbasedc" -x -w opensesame 
adding new entry "<some dn>"
ldap_add: Invalid syntax (21)
        additional info: homeState: value #0 invalid
per syntax

where homestate is the following:
objectIdentifier  homeState-oid
attributeTypes: ( 
		 NAME ( 'homeState' ) DESC 'sun Defined Attribute'
X-ORIGIN 'sun defined' )

and added in the MAY() section of the object declaration."

Comment by ldapadmin guys:

Unfortunately php_ldap doesnt return the additional info in
the error.

I would recommended that a feature enhancement request be
submitted to the php developers to get this additional


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:18 UTC]
-Package: Feature/Change Request +Package: LDAP related -Operating System: Irrelevant +Operating System: *
 [2015-05-05 19:48 UTC] andreas at heigl dot org
This issue is addressed with

After that PR has been merged you should be able to get the additional message via 

ldap_get_option($conn, LDAP_OPT_DIAGNOSTIC_MESSAGE, $extended_error);

That is when the client lib supports it....
 [2015-06-17 13:45 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: mcmic
 [2015-06-17 13:45 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC