5a8c66d325
* outposts/ldap: modularise ldap outpost, to allow different searchers and binders Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outposts/ldap: add basic in-memory searcher Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * providers/ldap: add search mode field Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * outpost: add search mode field Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
10 lines
202 B
Go
10 lines
202 B
Go
package bind
|
|
|
|
import "github.com/nmcclain/ldap"
|
|
|
|
type Binder interface {
|
|
GetUsername(string) (string, error)
|
|
Bind(username string, req *Request) (ldap.LDAPResultCode, error)
|
|
TimerFlowCacheExpiry()
|
|
}
|