This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-05 09:37:30 +00:00
|
|
|
package bind
|
|
|
|
|
2023-01-23 19:36:30 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/nmcclain/ldap"
|
|
|
|
)
|
2021-11-05 09:37:30 +00:00
|
|
|
|
|
|
|
type Binder interface {
|
|
|
|
GetUsername(string) (string, error)
|
|
|
|
Bind(username string, req *Request) (ldap.LDAPResultCode, error)
|
2023-01-23 19:36:30 +00:00
|
|
|
Unbind(username string, req *Request) (ldap.LDAPResultCode, error)
|
|
|
|
TimerFlowCacheExpiry(context.Context)
|
2021-11-05 09:37:30 +00:00
|
|
|
}
|