From: thegner at trilliumit dot com Operating system: ubuntu gutsy server PHP version: 5.2.5 PHP Bug Type: Reproducible crash Bug description: ldap_add() (perhaps other ldap functions) crash
Description: ------------ when doing an ldap_add() with "Die" as a persons last name, the server returns unwilling to perform. If I change only the last name to "Die2" it operates as expected. In our environment the following user attributes are associated with the last name. sn cn displayName distinguishedName sAMAccountName mailNickname userPrincipalName unicodePwd The ldap directory is Microsoft Active Directory on Windows Server 2003 Reproduce code: --------------- <?php $user_attributes['sAMAccountName'] = "tdie"; $user_attributes['mailNickname'] = "tdie"; $user_attributes['userPrincipalName'] = "[EMAIL PROTECTED]"; $user_attributes['unicodePwd'] = "\"\000t\000d\000i\000e\000\"\000"; $user_attributes['givenName'] = "Test"; $user_attributes['sn'] = "Die"; $user_attributes['cn'] = "Die, Test"; $user_attributes['displayName'] = "Die, Test"; $user_attributes['objectClass'][0] = "top"; $user_attributes['objectClass'][1] = "person"; $user_attributes['objectClass'][2] = "organizationalPerson"; $user_attributes['objectClass'][3] = "user"; //$gc_con previously set to valid ldap_connect() ldap_add($gc_con, "CN=Die\, Test,OU=Users,DC=Domain,DC=Com", $user_attributes); ?> Expected result: ---------------- We should expect the object to be added to the directory. Actual result: -------------- Error: Add: Server unwilling to perform... -- Edit bug report at http://bugs.php.net/?id=44534&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44534&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44534&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44534&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44534&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44534&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44534&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44534&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44534&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44534&r=support Expected behavior: http://bugs.php.net/fix.php?id=44534&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44534&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44534&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44534&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44534&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44534&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44534&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44534&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44534&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44534&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44534&r=mysqlcfg