15 lines
292 B
Go
15 lines
292 B
Go
package bind
|
|
|
|
import (
|
|
"context"
|
|
|
|
"beryju.io/ldap"
|
|
)
|
|
|
|
type Binder interface {
|
|
GetUsername(string) (string, error)
|
|
Bind(username string, req *Request) (ldap.LDAPResultCode, error)
|
|
Unbind(username string, req *Request) (ldap.LDAPResultCode, error)
|
|
TimerFlowCacheExpiry(context.Context)
|
|
}
|