Edit report at https://bugs.php.net/bug.php?id=66724&edit=1
ID: 66724
Comment by: chrispmaiden at gmail dot com
Reported by: post at rolandgruber dot de
Summary: ldap_get_entries does not escape DN values on Active
Directory
Status: Open
Type: Bug
Package: LDAP related
Operating System: Debian Linux
PHP Version: 5.4.25
Block user comment: N
Private report: N
New Comment:
I was hoping to test this but fell short, I found the OpenLDAP project host a public LDAP server
(http://www.openldap.org/faq/data/cache/1360.html) with the clause, "This service is often
unavailable for one reason or another." which I found to be the case.
Is anyone aware of alternative public LDAP servers to test against?
Failing that I'll set up instances locally.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2014-02-16 19:10:19] post at rolandgruber dot de
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 this bug report at https://bugs.php.net/bug.php?id=66724&edit=1