2021-11-05 09:37:30 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
|
|
"github.com/nmcclain/ldap"
|
2022-03-03 09:40:07 +00:00
|
|
|
"goauthentik.io/api/v3"
|
2021-11-05 09:37:30 +00:00
|
|
|
"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
|
2021-12-02 14:28:58 +00:00
|
|
|
GetBaseVirtualGroupDN() string
|
2021-11-05 09:37:30 +00:00
|
|
|
GetBaseUserDN() string
|
|
|
|
|
|
|
|
GetUserDN(string) string
|
|
|
|
GetGroupDN(string) string
|
|
|
|
GetVirtualGroupDN(string) string
|
|
|
|
|
|
|
|
GetUidNumber(api.User) string
|
|
|
|
GetGidNumber(api.Group) string
|
|
|
|
|
|
|
|
UsersForGroup(api.Group) []string
|
|
|
|
|
|
|
|
GetFlags(string) (flags.UserFlags, bool)
|
|
|
|
SetFlags(string, flags.UserFlags)
|
2021-12-02 14:28:58 +00:00
|
|
|
|
|
|
|
GetBaseEntry() *ldap.Entry
|
|
|
|
GetNeededObjects(int, string, string) (bool, bool)
|
2021-11-05 09:37:30 +00:00
|
|
|
}
|