LDAP error after upgrade 12 ce to 13 ce

After upgrade docker installation from v12 to v13 LDAP connection is not longer working:

seahub.log is always the same:
[2026-01-28 11:36:34] [ERROR] seahub.api2.endpoints.admin.users:955 get Failed to get users from ldap server: {'msgtype': 100, 'msgid': 2, 'result': 1, 'desc': 'Operations error', 'ctrls': [], 'info': '000004DC: LdapErr: DSID-0C090CDE, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563'}.

[2026-01-28 11:36:34] [ERROR] django.request:253 log_response Internal Server Error: /api/v2.1/admin/ldap-users/

A ldapsearch in the docker instance works, the LDAP config was unchanged between 12 and 13. and I already created an LdapErr: DSID-0C090CDE after upgrade from 12 to 13 · Issue #2995 · haiwen/seafile · GitHub

The error message LdapErr: DSID-0C090CDE, comment: In order to perform this operation a successful bind must be completed on the connection. clearly indicates that the issue stems from a failed LDAP bind.

Here are the key points to consider:

  1. At present, there are no widespread known issues regarding LDAP bind failures after upgrading from Seafile version 12 to 13.
  2. The root cause is that the Seafile server cannot successfully authenticate with your LDAP server. To investigate this further, you can add debug logs to the relevant code section that handles the LDAP bind operation. This will help you see the exact values being used for the bind DN and password, which can help pinpoint the cause of the failure.

Thank you, I could resolve it with changing the base dn:

LDAP_ADMIN_DN = 'CN=Admin,CN=Users,DC=domain,DC=local'
LDAP_BASE_DN = 'DC=domain,DC=local'

this setting worked for me:

LDAP_ADMIN_DN = 'CN=Admin,CN=Users,DC=domain,DC=local'
LDAP_BASE_DN = 'CN=Users,DC=domain,DC=local'

Glad to know the problem has been resolved.

Maybe it is caused by LDAP python library upgraded to a new version.