ldap_explode_dn Splits DN into its component parts php函数


(PHP 4, PHP 5)

ldap_explode_dnSplits DN into its component parts


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.



The distinguished name of an LDAP entity.


Used 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_attrib to 0 and to get only values set it to 1.


Returns an array of all DN components. The first element in this array has count key and represents the number of returned values, next elements are numerically indexed DN components.

ldap_first_attribute Return first attribute
ldap_first_entry Return first result id
ldap_first_reference Return first reference
ldap_free_result Free result memory
ldap_get_attributes Get attributes from a search result entry
ldap_get_dn Get the DN of a result entry
ldap_get_entries Get all result entries
ldap_get_option Get the current value for given option
ldap_get_values Get all values from a result entry
ldap_get_values_len Get all binary values from a result entry
ldap_list Single-level search
ldap_modify Modify an LDAP entry
ldap_mod_add Add attribute values to current attributes
ldap_mod_del Delete attribute values from current attributes

Copyright © 2016 phpStudy | 皖ICP备18014864号-4