LDAP Auth not working


I have installed ERPNext on our own server and I am trying to authenticate the users against openLDAP from iRedMail. The authentication with nextcloud works without any issues with the following LDAP query:


Log-In attributes:


With a base user tree:

Group member association:

I have tried all combinations, but I can’t get it to work. The login hangs in “Verifying” and nothing happens afterwards. I also tried to apply the gravatar fix (Bug : gravatar.com unreachable causes long freeze while saving a contact (timeout issue) · Issue #14814 · frappe/frappe · GitHub), but it also doesn’t help.

Could someone please tell me what I have to do, to get the authentication to work?

My current settings are:

Thanks for your help.