Bug #66724 [NEW]: ldap_get_entries does not escape DN values on Active Directory

From: Date: Sun, 16 Feb 2014 19:10:20 +0000
Subject: Bug #66724 [NEW]: ldap_get_entries does not escape DN values on Active Directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184324@lists.php.net to get a copy of this message
From: post at rolandgruber dot de Operating system: Debian Linux PHP version: 5.4.25 Package: LDAP related Bug Type: Bug Bug description:ldap_get_entries does not escape DN values on Active Directory Description: ------------ A search with ldap_search() and then getting the entries with ldap_get_entries() returns different search results on OpenLDAP and ActiveDirectory. Example DN of a search result entry: cn=foo\, bar,dc=test Active Directory: cn=foo\, bar,dc=test OpenLDAP: cn=foo\5C\2C bar,dc=test So for OpenLDAP special chars in the DN are escaped and for Active Directory they are not. Expected result: ---------------- The returned DNs should be the same for all LDAP servers. -- Edit bug report at https://bugs.php.net/bug.php?id=66724&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66724&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66724&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66724&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66724&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66724&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66724&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66724&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66724&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66724&r=support Expected behavior: https://bugs.php.net/fix.php?id=66724&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66724&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66724&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66724&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66724&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66724&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66724&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66724&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66724&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66724&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66724&r=mysqlcfg

« previous php.bugs (#184324) next »