UNIX / Solaris 8 Software Dictionary 3S Info LegoRacers Other Crap 

       yPass Home > yPass Software > PHP Modules > LDAP Class > getDN.html > getDN()
LDAP
XML
DNS

getDN()

    boolean getDN()
The getDN() function returns the DN of the last entry returned by fetch()

Example:

$ldap = new LDAP();
$ldap->search("(objectClass=person)");

while($attrs = $ldap->fetch()) // Get all the returned attributes
{
	echo "DN is: " . $ldap->getDN();
	echo $attrs["cn"] . "<br>";
}