milux / ctldap

LDAP Wrapper for ChurchTools
GNU General Public License v3.0
12 stars 8 forks source link

Case-insensitive search missing #11

Closed sscholl closed 4 years ago

sscholl commented 6 years ago

The search is case sensitiv. Users can't login with Test1, but with test1 if user is test1.

$ docker-compose run test ldapsearch -H ldap://ldap:1389 -x -D cn=root,ou=users,o=**** -w ^****************
-LLL -b o=**** '(&(&(objectclass=ctperson))(|(cn=*test1*)))'
dn: cn=test1.user,ou=users,o=****
cn: test1.user
displayname: Test1 User
id: 1507
uid: test1.user
nsuniqueid: u1507
givenname: Test1
sn: User
email: test@*****.de
mail: test@*****.de
objectclass: CTPerson
memberof: cn=it,ou=groups,o=****

$ docker-compose run test ldapsearch -H ldap://ldap:1389 -x -D cn=root,ou=users,o=****  -w ******************
-LLL -b o=**** '(&(&(objectclass=ctperson))(|(cn=*Test1*)))'
Seb9mann commented 5 years ago

Same problem here. What to do?

a-schild commented 5 years ago

We see this also as a problem when searching for group names. When we try to share with groups in Nextcloud 15, the search for matching groups is done case sensitiv, which is "not nice" for the users, since they need to know which upper/lowercase the group was created in ct

milux commented 4 years ago

Solution from https://github.com/ldapjs/node-ldapjs/issues/156 has been copy-pasted somewhere in the ctldap-ms fork, so this is done.