Documentation ¶
Overview ¶
Implement dynamic formatting from LDAP entry.
Implements ldap.conf(5)
Index ¶
- Variables
- func CleanFilter(filter string) string
- func Initialize() error
- func IsErrorRecoverable(err error) bool
- func LogRetryError(n uint, err error)
- func NeedsQuote(s string) bool
- func ResolveFirstRDN(rawDN, relativeField string) (string, error)
- func ShellQuote(arg string) string
- type Client
- type Result
- func (r *Result) GenerateCombinations(attributes, subKeys []string) <-chan map[string]string
- func (r *Result) GenerateSubsearchValues(parentExpressions []string) map[string]map[string]string
- func (r *Result) GenerateValues(fmts ...pyfmt.Format) <-chan map[string]string
- func (r *Result) ResolveExpressions(expressions []string, attrValues map[string]string, ...) map[string]string
- type Scope
- type Search
- type Subsearch
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownRDNs = []string{"cn", "l", "st", "o", "ou", "c", "street", "dc", "uid"}
View Source
var Watch perf.StopWatch
Functions ¶
func CleanFilter ¶
Prepare a YAML filter string for compilation by ldapv3.CompileFilter. go-ldap is stricter than openldap when implementing RFC4515 filter. No spaces are allowed around parenthesises.
func Initialize ¶
func Initialize() error
func NeedsQuote ¶
func ResolveFirstRDN ¶
func ShellQuote ¶
Types ¶
type Client ¶
type Result ¶
type Result struct { // Is nil for static generation Entry *ldap3.Entry // Is empty if no sub-search. SubsearchAttribute string SubsearchEntries []*ldap3.Entry }
Holds a consistent set of entry and sub-search entries.
func (*Result) GenerateCombinations ¶
func (*Result) GenerateSubsearchValues ¶
Return a list of expression -> values for formatting, indexed by a string key.
func (*Result) GenerateValues ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.