ldap_dn2ufn

string ldap_dn2ufn(string DN) 

Converts a distinguished name string.

Returns:

UFN name

Description:

Converts a distinguished name (DN) into a user-friendly name (UFN). The distinguished name can be derived using ldap_get_dn().

Availability:

UNIX/Linux, Windows

Version:

3+, 4+

Example:

Obtain a list of UFNs
$result = ldap_search($ldap_conn, "dc=foo,dc=com", $filter); 
$count = ldap_count_entries($ldap_conn, $result); 
$entry = ldap_first_entry($ldap_conn, $result); 
while ($entry) {
    $dn = ldap_dn2ufn(ldap_get_dn($ldap_conn, $entry)); 
    echo "DN: $dn<BR />\n"; 
    $entry = ldap_next_entry($ldap_conn, $result); 
} 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.