From: [EMAIL PROTECTED] Operating system: Irrelevant PHP version: 5CVS-2006-09-18 (CVS) PHP Bug Type: LDAP related Bug description: LDAP error message incomplete
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 bug report at http://bugs.php.net/?id=38864&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38864&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38864&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38864&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38864&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38864&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38864&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38864&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38864&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38864&r=support Expected behavior: http://bugs.php.net/fix.php?id=38864&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38864&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38864&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38864&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38864&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38864&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38864&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38864&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38864&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38864&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38864&r=mysqlcfg