Req #38864 [Com]: LDAP error message incomplete

From: Date: Tue, 05 May 2015 19:48:00 +0000
Subject: Req #38864 [Com]: LDAP error message incomplete
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192497@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=38864&edit=1 ID: 38864 Comment by: andreas at heigl dot org Reported by: sesser@php.net Summary: LDAP error message incomplete Status: Open Type: Feature/Change Request Package: LDAP related Operating System: * PHP Version: 5CVS-2006-09-18 (CVS) Block user comment: N Private report: N New Comment: This issue is addressed with https://github.com/php/php-src/pull/1261. 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.... Previous Comments: ------------------------------------------------------------------------ [2006-09-18 08:38:38] sesser@php.net Description: ------------ 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://127.0.0.1:399/ -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 2.5.6.5.555.555850 attributeTypes: ( 2.5.6.5.555.555850 NAME ( 'homeState' ) DESC 'sun Defined Attribute' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE 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 information. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=38864&edit=1

« previous php.bugs (#192497) next »