LDAPError when login

Hi,
What does this message mean?

Fri Jun 30 17:27:46 2023] ERROR:trytond.modules.ldap_authentication.res:LDAPError when login
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/trytond/modules/ldap_authentication/res.py", line 141, in _login_ldap
    with ldap3.Connection(server, dn, password) as con:
  File "/usr/local/lib/python3.8/site-packages/ldap3/core/connection.py", line 534, in __enter__
    raise LDAPBindError('unable to bind')
ldap3.core.exceptions.LDAPBindError: unable to bind

It means that the configuration for the LDAP connection is not working.

We normally connect to the server. But with every login we get this message.

Well I guess you authenticate with another method than LDAP but you have LDAP configured as one of the authentication method but it is failing to connect to the server.

Can you tell me, please, where is the configuration file for LDAP connection?

In the trytond configuration under the section [ldap_authentication].

Here is our section:

[ldap_authentication]
uri = ldap://ldap:389/ou=People,dc=ilt,dc=ua?uid?onelevel

What’s wrong with it?

I can not say. But it is not enough to bind to your LDAP server. Maybe you need a bind_pass.

We have set the bind_pass password. Nothing changed. The message unable to bind remains.

Maybe you need to define a bindname.
You should read the ldap3 documentation to learn the correct way to connect to your LDAP server.