operasoftware / dns-ui

Opera's LDAP-authenticated PowerDNS user interface
Apache License 2.0
283 stars 57 forks source link

Case sensitive problem with LDAP #129

Closed rmuehl closed 4 years ago

rmuehl commented 5 years ago

I face the following problem with LDAP auth on Linux.

  1. Login to apache with user "testuser"
  2. user "testuser" doesn't exist yet
  3. LDAP backend does the queries, and gets back TESTUSER
  4. TESTUSER is being created in the database
  5. on the next request "testuser" doesn't exist
  6. backend tries to create the user again, but "TESTUSER" already exists

So the apache LDAP Auth doesn't care abaut upper or lower case, but the LDAP backend does.

systeembeheerder commented 4 years ago

This problem also arises with LDAP to an AD server.

thomas-pike commented 4 years ago

Have you tried setting the user_case_sensitive option to 0?

systeembeheerder commented 4 years ago

@thomas-pike user_case_sensitive = 0 solved my problem. Thanx!