outposts/ldap: Fix search case sensitivity. (#1897)
This commit is contained in:
parent
1f31c63e57
commit
bd2e453218
|
@ -25,6 +25,7 @@ type Request struct {
|
||||||
func NewRequest(bindDN string, searchReq ldap.SearchRequest, conn net.Conn) (*Request, *sentry.Span) {
|
func NewRequest(bindDN string, searchReq ldap.SearchRequest, conn net.Conn) (*Request, *sentry.Span) {
|
||||||
rid := uuid.New().String()
|
rid := uuid.New().String()
|
||||||
bindDN = strings.ToLower(bindDN)
|
bindDN = strings.ToLower(bindDN)
|
||||||
|
searchReq.BaseDN = strings.ToLower(searchReq.BaseDN)
|
||||||
span := sentry.StartSpan(context.TODO(), "authentik.providers.ldap.search", sentry.TransactionName("authentik.providers.ldap.search"))
|
span := sentry.StartSpan(context.TODO(), "authentik.providers.ldap.search", sentry.TransactionName("authentik.providers.ldap.search"))
|
||||||
span.SetTag("request_uid", rid)
|
span.SetTag("request_uid", rid)
|
||||||
span.SetTag("user.username", bindDN)
|
span.SetTag("user.username", bindDN)
|
||||||
|
|
Reference in a new issue