Documentation
¶
Index ¶
- Variables
- func GetFilteredGroups(m *ldap.Message, baseDN string, filterStr string) ([]*object.Group, int)
- func GetFilteredOrganizations(m *ldap.Message) ([]*object.Organization, int)
- func GetFilteredUsers(m *ldap.Message) (filteredUsers []*object.User, code int)
- func IsLdapAttrAllowed(org *object.Organization, attr string) bool
- func StartLdapServer()
- type AttributeMapper
- type FieldRelation
Constants ¶
This section is empty.
Variables ¶
View Source
var AdditionalLdapAttributes []message.LDAPString
Functions ¶
func GetFilteredGroups ¶
func GetFilteredOrganizations ¶
func GetFilteredOrganizations(m *ldap.Message) ([]*object.Organization, int)
func GetFilteredUsers ¶
func IsLdapAttrAllowed ¶
func IsLdapAttrAllowed(org *object.Organization, attr string) bool
IsLdapAttrAllowed checks whether the given LDAP attribute is allowed for the organization. An empty filter or a filter containing "All" means all attributes are allowed.
func StartLdapServer ¶
func StartLdapServer()
Types ¶
type AttributeMapper ¶
type AttributeMapper func(user *object.User) message.AttributeValue
type FieldRelation ¶
type FieldRelation struct {
// contains filtered or unexported fields
}
func (FieldRelation) GetAttributeValue ¶
func (rel FieldRelation) GetAttributeValue(user *object.User) message.AttributeValue
func (FieldRelation) GetField ¶
func (rel FieldRelation) GetField() (string, error)
Click to show internal directories.
Click to hide internal directories.