gitea: Regression: login via LDAP not possible: '(LDAP Result Code 2 "Protocol Error": )'

  • Gitea version (or commit ref): dfad569 built with go1.11.5 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.18.1
  • Operating system: offical docker image, docker.io/gitea/gitea, tag 1.7, image ID 044ab4ac3753
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I am not able to log in via LDAP anymore:

[...gitea/models/user.go:1544 SyncExternalUsers()] [E] LDAP Search failed unexpectedly! (LDAP Result Code 2 "Protocol Error": )

The LDAP problems came as a regression when I updated to 1.6. I thought that the backport of #5816 to 1.7.1 would solve my problems. But unfortunately this is not the case, an update of my container image to the latest 1.7 tag has the above mentioned log.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 29 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Fix confirmed as working on arm7 with postgresql and slapd @zeripath

we could probably try to upgrade to “gopkg.in/ldap.v3” to see if that resolves your issue

Currently compiling go1.11.5 on my pi3 to then build and test the @zeripath branch.

I’m running slapd 2.4.44+dfsg-5+deb9u1 on arm7 for the record.

I’ve done the upgrade to 1.7.1 and everything works fine.

SuSe Linux Enterprise 12 Postgres Windows Active Directory