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
dnnames an entry strictly belowbase(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:
displaywhen it says anything, else the given name, initials and surname that are present, joined by single spaces;Nonewhen 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
urlwithout StartTLS would expose a password. - one_
group - Whether
filteris 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.