Takes an array of DN elements and properly quotes it according to RFC
1485.
public static quoteDN ( array $parts ) : string | ||
$parts | array | An array of tuples containing the attribute
name and that attribute's value which make
up the DN. Example:
$parts = array(
array('cn', 'John Smith'),
array('dc', 'example'),
array('dc', 'com')
);
Nested arrays are supported since 2.1.0, to form
multi-valued RDNs. Example:
$parts = array(
array(
array('cn', 'John'),
array('sn', 'Smith'),
array('o', 'Acme Inc.'),
),
array('dc', 'example'),
array('dc', 'com')
);
which will result in
cn=John+sn=Smith+o=Acme Inc.,dc=example,dc=com |
return | string | The properly quoted string DN. |