ad

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADLDAPInterface

type ADLDAPInterface struct {
	// contains filtered or unexported fields
}

ADLDAPInterface extracts the member list of an LDAP group entry from an LDAP server with first-class LDAP entries for user only. The ADLDAPInterface is *NOT* thread-safe. The ADLDAPInterface satisfies: - LDAPMemberExtractor - LDAPGroupLister

func NewADLDAPInterface

func NewADLDAPInterface(clientConfig *ldaputil.LDAPClientConfig,
	userQuery ldaputil.LDAPQuery,
	groupMembershipAttributes []string,
	userNameAttributes []string) *ADLDAPInterface

NewADLDAPInterface builds a new ADLDAPInterface using a schema-appropriate config

func (*ADLDAPInterface) ExtractMembers

func (e *ADLDAPInterface) ExtractMembers(ldapGroupUID string) ([]*ldap.Entry, error)

ExtractMembers returns the LDAP member entries for a group specified with a ldapGroupUID

func (*ADLDAPInterface) ListGroups

func (e *ADLDAPInterface) ListGroups() ([]string, error)

ListGroups queries for all groups as configured with the common group filter and returns their LDAP group UIDs. This also satisfies the LDAPGroupLister interface

type AugmentedADLDAPInterface

type AugmentedADLDAPInterface struct {
	*ADLDAPInterface
	// contains filtered or unexported fields
}

LDAPInterface extracts the member list of an LDAP user entry from an LDAP server with first-class LDAP entries for users and group. Group membership is on the user. The LDAPInterface is *NOT* thread-safe. The LDAPInterface satisfies: - LDAPMemberExtractor - LDAPGroupGetter - LDAPGroupLister

func NewAugmentedADLDAPInterface

func NewAugmentedADLDAPInterface(clientConfig *ldaputil.LDAPClientConfig,
	userQuery ldaputil.LDAPQuery,
	groupMembershipAttributes []string,
	userNameAttributes []string,
	groupQuery ldaputil.LDAPQueryOnAttribute,
	groupNameAttributes []string) *AugmentedADLDAPInterface

NewLDAPInterface builds a new LDAPInterface using a schema-appropriate config

func (*AugmentedADLDAPInterface) GroupEntryFor

func (e *AugmentedADLDAPInterface) GroupEntryFor(ldapGroupUID string) (*ldap.Entry, error)

GroupFor returns an LDAP group entry for the given group UID by searching the internal cache of the LDAPInterface first, then sending an LDAP query if the cache did not contain the entry. This also satisfies the LDAPGroupGetter interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL