2021-11-05 09:37:30 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2023-06-06 19:40:19 +00:00
|
|
|
"beryju.io/ldap"
|
2021-11-05 09:37:30 +00:00
|
|
|
"github.com/go-openapi/strfmt"
|
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
|
|
|
|
|
2023-01-23 19:36:30 +00:00
|
|
|
GetAuthenticationFlowSlug() string
|
|
|
|
GetInvalidationFlowSlug() string
|
2021-11-05 09:37:30 +00:00
|
|
|
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
|
2023-06-20 10:09:13 +00:00
|
|
|
GetMFASupport() bool
|
2021-11-05 09:37:30 +00:00
|
|
|
|
|
|
|
GetUserDN(string) string
|
|
|
|
GetGroupDN(string) string
|
|
|
|
GetVirtualGroupDN(string) string
|
|
|
|
|
|
|
|
GetUidNumber(api.User) string
|
|
|
|
GetGidNumber(api.Group) string
|
|
|
|
|
|
|
|
UsersForGroup(api.Group) []string
|
|
|
|
|
2022-05-21 13:48:50 +00:00
|
|
|
GetFlags(dn string) *flags.UserFlags
|
2023-01-23 19:36:30 +00:00
|
|
|
SetFlags(dn string, flags *flags.UserFlags)
|
2021-12-02 14:28:58 +00:00
|
|
|
|
2023-06-08 13:16:40 +00:00
|
|
|
GetNeededObjects(scope int, baseDN string, filterOC string) (bool, bool)
|
2021-11-05 09:37:30 +00:00
|
|
|
}
|