leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
520 stars 166 forks source link

Cannot find users with apostrophe in uid #238

Open lscorcia opened 11 months ago

lscorcia commented 11 months ago

Describe the bug Hi, today we had an issue with a user that has an apostrophe in its uid - creation is succesful, but searches fail:

immagine

immagine

Entries are correct when inspected via Apache Directory Studio.

To Reproduce Steps to reproduce the behavior:

  1. Create a user with an apostrophe in the uid field (e.g. t.d'example)
  2. Do a search using the apostrophe: no results
  3. Do a search using a different part of the username with no apostrophe (eg. example), the item is returned immagine
  4. Click on the entry, no entry is found: immagine

Expected behavior Users with apostrophes in the uid shouldn't have any particular issue.

LDAP Server details (please complete the following information):