ParseDN (open)
Parse an LDAP distinguished name
Syntax
LOADLIB "wh::dbase/ldap.whlib";
RECORD ARRAY FUNCTION ParseDN(STRING dn)
Parameters
STRING dn
Return value
RECORD ARRAY
A list of DN attributes
type
The attribute name (or dotted OID representation)
value
The attribute value
Description
This function takes a distinguished name and returns a list of attributes, according to the specification in RFC 1779. Newlines and multi-component RDNs are not supported. The list of attributes is sorted from most significant (right) to least significant (left).
Examples
// Returns [ [ type := "c", value := "nl" ], [ type := "o", value := "B-Lex" ] ]
RECORD ARRAY attributes := ParseDN("o=B-Lex, c=nl");