Closed ogmueller closed 1 year ago
Which Traefik version are you using?
traefik | {"level":"error","module":"github.com/wiltonsr/ldapAuth","msg":"plugins-storage/sources/gop-3099684647/src/github.com/wiltonsr/ldapAuth/vendor/github.com/go-ldap/ldap/v3/request.go:50:2: panic","plugin":"plugin-ldapAuth","time":"2023-02-21T18:56:34Z"}
Looks like the problem is with go-ldap
.
traefik:v2.9
Hello, @ogmueller
I have tested with v2.9.8
and can't reproduce your error.
Can you test with another server/machine and provide more details?
These are our traefik plugin settings for LDAP
http:
middlewares:
teqneers-ldapAuth:
plugin:
ldapAuth:
Attribute: uid
BaseDn: ou=people,dc=host,dc=com
Enabled: "true"
Url: ldaps://ldap.host.com
LogLevel: DEBUG
useTLS: "true"
Port: "636"
We are using a "standard" slapd server:
Package: slapd
Version: 2.4.49+dfsg-2ubuntu1.9
Docker version 23.0.1, build a5ee5b1 on latest Ubuntu 22.04.
Closing this in favor of #25.
The authentication with LDAP works, but it will create these panics as seen in first block. It is possible to use the app behind it, but after a while (i guess the session is dropped) it goes into more panics and it dies with "Internal Server Error" (500) as seen in the second block. After that I could only restart traefic to recover and the whole things starts over again.
2nd block: