diff options
Diffstat (limited to 'internal/auth/ldap/provider.go')
-rw-r--r-- | internal/auth/ldap/provider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/auth/ldap/provider.go b/internal/auth/ldap/provider.go index 9cceed47..c7077d8e 100644 --- a/internal/auth/ldap/provider.go +++ b/internal/auth/ldap/provider.go @@ -29,7 +29,7 @@ func NewProvider(directBind bool, cfg *Config) auth.Provider { func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, error) { username, fn, sn, email, isAdmin, succeed := p.config.searchEntry(login, password, p.directBind) if !succeed { - return nil, auth.ErrBadCredentials{Args: map[string]interface{}{"login": login}} + return nil, auth.ErrBadCredentials{Args: map[string]any{"login": login}} } if username == "" { @@ -61,7 +61,7 @@ func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, }, nil } -func (p *Provider) Config() interface{} { +func (p *Provider) Config() any { return p.config } |