Documentation ¶
Index ¶
- Constants
- type LdapGroupInfo
- type LdapServiceInfo
- type LdapUserInfo
- type MockLdap
- func (m *MockLdap) AddmemberstoExisting(groupinfo userinfo.GroupInfo) error
- func (m *MockLdap) ChangeDescription(groupname string, managegroup string) error
- func (m *MockLdap) CreateGroup(groupinfo userinfo.GroupInfo) error
- func (m *MockLdap) CreateServiceAccount(groupinfo userinfo.GroupInfo) error
- func (m *MockLdap) CreateUser(username string, givenName, email []string) error
- func (m *MockLdap) CreategroupDn(groupname string) string
- func (m *MockLdap) DeleteGroup(groupnames []string) error
- func (m *MockLdap) DeletemembersfromGroup(groupinfo userinfo.GroupInfo) error
- func (m *MockLdap) GetAllGroupsManagedBy() ([][]string, error)
- func (m *MockLdap) GetDescriptionvalue(groupname string) (string, error)
- func (m *MockLdap) GetEmailofauser(username string) ([]string, error)
- func (m *MockLdap) GetEmailofusersingroup(groupname string) ([]string, error)
- func (m *MockLdap) GetGroupUsersAndManagers(groupname string) ([]string, []string, string, error)
- func (m *MockLdap) GetGroupandManagedbyAttributeValue(groupnames []string) ([][]string, error)
- func (m *MockLdap) GetGroupsInfoOfUser(groupdn string, username string) ([][]string, error)
- func (m *MockLdap) GetUserAttributes(username string) ([]string, []string, error)
- func (m *MockLdap) GetallGroups() ([]string, error)
- func (m *MockLdap) GetallUsers() ([]string, error)
- func (m *MockLdap) GetgroupsofUser(username string) ([]string, error)
- func (m *MockLdap) GetmaximumGidnumber(s string) (string, error)
- func (m *MockLdap) GetmaximumUidnumber(s string) (string, error)
- func (m *MockLdap) GetusersofaGroup(groupname string) ([]string, string, error)
- func (m *MockLdap) GroupnameExistsornot(groupname string) (bool, string, error)
- func (m *MockLdap) IsgroupAdminorNot(username string, groupname string) (bool, error)
- func (m *MockLdap) IsgroupmemberorNot(groupname string, username string) (bool, string, error)
- func (m *MockLdap) ParseSuperadmins() []string
- func (m *MockLdap) ServiceAccountExistsornot(groupname string) (bool, string, error)
- func (m *MockLdap) UserisadminOrNot(username string) bool
- func (m *MockLdap) UsernameExistsornot(username string) (bool, error)
Constants ¶
View Source
const GroupServiceAccount userinfo.AccountType = 2
View Source
const LdapGroupDN = "ou=groups,dc=mgmt,dc=example,dc=com"
View Source
const LdapServiceDN = "ou=services,dc=mgmt,dc=example,dc=com"
View Source
const LdapUserDN = "ou=people,dc=mgmt,dc=example,dc=com"
View Source
const UserServiceAccount userinfo.AccountType = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LdapGroupInfo ¶
type LdapGroupInfo struct {
// contains filtered or unexported fields
}
type LdapServiceInfo ¶
type LdapServiceInfo struct {
// contains filtered or unexported fields
}
type LdapUserInfo ¶
type LdapUserInfo struct {
// contains filtered or unexported fields
}
type MockLdap ¶
type MockLdap struct { Groups map[string]LdapGroupInfo Users map[string]LdapUserInfo SuperAdminGroup string Services map[string]LdapServiceInfo }
func (*MockLdap) AddmemberstoExisting ¶
func (*MockLdap) ChangeDescription ¶
func (*MockLdap) CreateServiceAccount ¶
func (*MockLdap) CreateUser ¶
func (*MockLdap) CreategroupDn ¶
func (*MockLdap) DeleteGroup ¶
func (*MockLdap) DeletemembersfromGroup ¶
func (*MockLdap) GetAllGroupsManagedBy ¶
func (*MockLdap) GetDescriptionvalue ¶
func (*MockLdap) GetEmailofauser ¶
func (*MockLdap) GetEmailofusersingroup ¶
func (*MockLdap) GetGroupUsersAndManagers ¶
func (*MockLdap) GetGroupandManagedbyAttributeValue ¶
func (*MockLdap) GetGroupsInfoOfUser ¶
func (*MockLdap) GetUserAttributes ¶
func (*MockLdap) GetallGroups ¶
func (*MockLdap) GetallUsers ¶
func (*MockLdap) GetgroupsofUser ¶
func (*MockLdap) GetmaximumGidnumber ¶
func (*MockLdap) GetmaximumUidnumber ¶
func (*MockLdap) GetusersofaGroup ¶
func (*MockLdap) GroupnameExistsornot ¶
func (*MockLdap) IsgroupAdminorNot ¶
func (*MockLdap) IsgroupmemberorNot ¶
func (*MockLdap) ParseSuperadmins ¶
func (*MockLdap) ServiceAccountExistsornot ¶
func (*MockLdap) UserisadminOrNot ¶
Click to show internal directories.
Click to hide internal directories.