ab2299ba1e
* initial cached ldap bind support Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * add web Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * add docs Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * clean up api generation Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * use gh action for golangci-lint Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
40 lines
835 B
Go
40 lines
835 B
Go
package server
|
|
|
|
import (
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/nmcclain/ldap"
|
|
"goauthentik.io/api/v3"
|
|
"goauthentik.io/internal/outpost/ldap/flags"
|
|
)
|
|
|
|
type LDAPServerInstance interface {
|
|
GetAPIClient() *api.APIClient
|
|
GetOutpostName() string
|
|
|
|
GetFlowSlug() string
|
|
GetAppSlug() string
|
|
GetSearchAllowedGroups() []*strfmt.UUID
|
|
|
|
UserEntry(u api.User) *ldap.Entry
|
|
|
|
GetBaseDN() string
|
|
GetBaseGroupDN() string
|
|
GetBaseVirtualGroupDN() string
|
|
GetBaseUserDN() string
|
|
|
|
GetUserDN(string) string
|
|
GetGroupDN(string) string
|
|
GetVirtualGroupDN(string) string
|
|
|
|
GetUidNumber(api.User) string
|
|
GetGidNumber(api.Group) string
|
|
|
|
UsersForGroup(api.Group) []string
|
|
|
|
GetFlags(dn string) (flags.UserFlags, bool)
|
|
SetFlags(dn string, flags flags.UserFlags)
|
|
|
|
GetBaseEntry() *ldap.Entry
|
|
GetNeededObjects(int, string, string) (bool, bool)
|
|
}
|