fix(ldap): use DN instead of uid in basicAuth GetLDAPUser call (#1015)

This commit is contained in:
tsushanth
2026-07-16 15:15:48 -07:00
committed by GitHub
parent 04a06ec5ff
commit ac8703eadb
+1 -1
View File
@@ -282,7 +282,7 @@ func (m *ContextMiddleware) basicAuth(username string, password string) (*model.
}
userContext.Provider = model.ProviderLocal
case model.UserLDAP:
user, err := m.auth.GetLDAPUser(username)
user, err := m.auth.GetLDAPUser(search.Username)
if err != nil {
return nil, nil, fmt.Errorf("error retrieving ldap user details: %w", err)