Skip to content

Commit

Permalink
Fix bug mock_ldap_authenticator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
minhduc140583 committed May 3, 2021
1 parent 2c959ba commit 8353018
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mock/mock_ldap_authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ type MockLDAPAuthenticator struct {
Status auth.Status
}

func NewDAPAuthenticatorByConfig(conf l.LDAPConfig, status auth.Status) (auth.Authenticator, error) {
type IAuthenticator interface {
Authenticate(ctx context.Context, info auth.AuthInfo) (auth.AuthResult, error)
}
func NewDAPAuthenticatorByConfig(conf l.LDAPConfig, status auth.Status) (IAuthenticator, error) {
s := conf.Users
if len(s) > 0 {
users := strings.Split(conf.Users, ",")
Expand Down

0 comments on commit 8353018

Please sign in to comment.