0ce41a1b2d
* providers/ldap: add StartTLS support Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add starttls test Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update form and docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * re-add tls server name Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update release notes Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
41 lines
867 B
Go
41 lines
867 B
Go
package server
|
|
|
|
import (
|
|
"beryju.io/ldap"
|
|
"github.com/go-openapi/strfmt"
|
|
"goauthentik.io/api/v3"
|
|
"goauthentik.io/internal/outpost/ldap/flags"
|
|
)
|
|
|
|
type LDAPServerInstance interface {
|
|
GetAPIClient() *api.APIClient
|
|
GetOutpostName() string
|
|
|
|
GetAuthenticationFlowSlug() string
|
|
GetInvalidationFlowSlug() 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
|
|
SetFlags(dn string, flags *flags.UserFlags)
|
|
|
|
GetBaseEntry() *ldap.Entry
|
|
GetNeededObjects(int, string, string) (bool, bool)
|
|
}
|