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"
|
|
|
|
|
2023-06-06 19:40:19 +00:00
|
|
|
"beryju.io/ldap"
|
2023-01-23 19:36:30 +00:00
|
|
|
)
|
2021-11-05 09:37:30 +00:00
|
|
|
|
|
|
|
type Binder interface {
|
2023-06-08 13:16:40 +00:00
|
|
|
GetUsername(dn string) (string, error)
|
2021-11-05 09:37:30 +00:00
|
|
|
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
|
|
|
}
|