PHP Manual: ldap_explode_dn
ldap_explode_dn
Description
array ldap_explode_dn ( string dn, int with_attrib )Splits the DN returned by ldap_get_dn() and breaks it up into its component parts. Each part is known as Relative Distinguished Name, or RDN.
Parameters
dnThe distinguished name of an LDAP entity.
with_attribUsed to request if the RDNs are returned with only values or their attributes as well. To get RDNs with the attributes (i.e. in attribute=value format) set
with_attribto 0 and to get only values set it to 1.