Skip to main content

Module search

Module search 

Source
Expand description

LDAP filter and result helpers, independent of a live directory.

Constants§

IN_CHAIN
Active Directory’s matching rule for nested group membership.

Functions§

all_of
(&<account filter><given filter>): a filter a caller supplied can only narrow the accounts the provider is configured to read.
below
Whether dn names an entry strictly below base (the base itself is not below it). Components compare case-insensitively with blanks around = and , ignored.
disabled
Whether Active Directory account flags include ACCOUNTDISABLE.
display_name
A person’s name in natural order: display when it says anything, else the given name, initials and surname that are present, joined by single spaces; None when nothing is.
escaped
Escapes a value for a filter (RFC 4515): the metacharacters, controls and every byte of a non-ASCII character as \xx. The matcher’s own function, so one rule escapes everywhere.
filter
Substitutes an escaped value for each {field} in an LDAP filter.
group_name
Reads the first RDN value of a group DN, unescaping comma and backslash.
in_the_clear
Whether connecting to url without StartTLS would expose a password.
one_group
Whether filter is one balanced parenthesised group: (...) whose first parenthesis closes at the end. Escaped values hold no parenthesis, so this is the shape of a filter the matcher wrote.