Module simple_dn

Module simple_dn 

Source
Expand description

A type representing a simple Distinguished Name.

E.g. “CN=Tea,OU=Leaves,OU=Are,DC=Great,DC=Org”

The LDAP spec formally allows you to include almost anything in a DN, but these features are rarely used. This simple DN representation covers the common cases, and is easy to work with.

Structs§

SimpleDN
LDAP Distinguished Name
SimpleDnParseError

Functions§

common_ancestor
Find the “maximal” common ancestor of two DNs, if any. Maximal here means that the returned DN is as long as possible.