Documentation ¶
Index ¶
- Constants
- Variables
- func NewLDAPDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- type SDomainInfo
- type SGroupInfo
- type SLDAPDriver
- func (drv *SLDAPDriver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
- func (ldap *SLDAPDriver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)
- func (drv *SLDAPDriver) Probe(ctx context.Context) error
- func (drv *SLDAPDriver) Sync(ctx context.Context) error
- type SLDAPDriverClass
- func (self *SLDAPDriverClass) ForceSyncUser() bool
- func (self *SLDAPDriverClass) GetDefaultIconUri(tmpName string) string
- func (self *SLDAPDriverClass) IsSso() bool
- func (self *SLDAPDriverClass) Name() string
- func (self *SLDAPDriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
- func (self *SLDAPDriverClass) SingletonInstance() bool
- func (self *SLDAPDriverClass) SyncMethod() string
- func (self *SLDAPDriverClass) ValidateConfig(ctx context.Context, userCred mcclient.TokenCredential, template string, ...) (api.TConfigs, error)
- type SUserInfo
Constants ¶
Variables ¶
View Source
var ( MicrosoftActiveDirectorySingleDomainTemplate = api.SLDAPIdpConfigOptions{ UserObjectclass: "organizationalPerson", UserIdAttribute: "sAMAccountName", UserNameAttribute: "sAMAccountName", UserEnabledAttribute: "userAccountControl", UserEnabledMask: 2, UserEnabledDefault: "512", UserEnabledInvert: true, UserAdditionalAttribute: []string{ "displayName:displayname", "telephoneNumber:mobile", "mail:email", }, UserQueryScope: "sub", GroupObjectclass: "group", GroupIdAttribute: "sAMAccountName", GroupNameAttribute: "name", GroupMemberAttribute: "member", GroupMembersAreIds: false, GroupQueryScope: "sub", } MicrosoftActiveDirectoryMultipleDomainTemplate = api.SLDAPIdpConfigOptions{ DomainObjectclass: "organizationalUnit", DomainIdAttribute: "objectGUID", DomainNameAttribute: "name", DomainQueryScope: "one", UserObjectclass: "organizationalPerson", UserIdAttribute: "sAMAccountName", UserNameAttribute: "sAMAccountName", UserEnabledAttribute: "userAccountControl", UserEnabledMask: 2, UserEnabledDefault: "512", UserEnabledInvert: true, UserAdditionalAttribute: []string{ "displayName:displayname", "telephoneNumber:mobile", "mail:email", }, UserQueryScope: "sub", GroupObjectclass: "group", GroupIdAttribute: "sAMAccountName", GroupNameAttribute: "name", GroupMemberAttribute: "member", GroupMembersAreIds: false, GroupQueryScope: "sub", } OpenLdapSingleDomainTemplate = api.SLDAPIdpConfigOptions{ UserObjectclass: "person", UserIdAttribute: "uid", UserNameAttribute: "uid", UserEnabledAttribute: "nsAccountLock", UserEnabledDefault: "FALSE", UserEnabledInvert: true, UserAdditionalAttribute: []string{ "displayName:displayname", "mobile:mobile", "mail:email", }, UserQueryScope: "sub", GroupObjectclass: "ipausergroup", GroupIdAttribute: "cn", GroupNameAttribute: "cn", GroupMemberAttribute: "member", GroupMembersAreIds: false, GroupQueryScope: "sub", } )
Functions ¶
func NewLDAPDriver ¶
Types ¶
type SDomainInfo ¶
type SGroupInfo ¶
type SGroupInfo struct { SDomainInfo Members []string }
type SLDAPDriver ¶
type SLDAPDriver struct { driver.SBaseIdentityDriver // contains filtered or unexported fields }
func (*SLDAPDriver) Authenticate ¶
func (drv *SLDAPDriver) Authenticate(ctx context.Context, ident mcclient.SAuthenticationIdentity) (*api.SUserExtended, error)
func (*SLDAPDriver) GetSsoRedirectUri ¶
type SLDAPDriverClass ¶
type SLDAPDriverClass struct{}
func (*SLDAPDriverClass) ForceSyncUser ¶
func (self *SLDAPDriverClass) ForceSyncUser() bool
func (*SLDAPDriverClass) GetDefaultIconUri ¶
func (self *SLDAPDriverClass) GetDefaultIconUri(tmpName string) string
func (*SLDAPDriverClass) IsSso ¶
func (self *SLDAPDriverClass) IsSso() bool
func (*SLDAPDriverClass) Name ¶
func (self *SLDAPDriverClass) Name() string
func (*SLDAPDriverClass) NewDriver ¶
func (self *SLDAPDriverClass) NewDriver(idpId, idpName, template, targetDomainId string, conf api.TConfigs) (driver.IIdentityBackend, error)
func (*SLDAPDriverClass) SingletonInstance ¶
func (self *SLDAPDriverClass) SingletonInstance() bool
func (*SLDAPDriverClass) SyncMethod ¶
func (self *SLDAPDriverClass) SyncMethod() string
func (*SLDAPDriverClass) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.