ldap
| From: | ECS) | Date: | Tue, 17 Jul 2001 10:06:31 +0000 |
| Subject: | ldap | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58235@lists.php.net to get a copy of this message | ||
I made a search in ldap.
I got one entrie.
How do i list the email for that entry? Ill get one answer from this, now i want to print out the
email adress for that entry.
How do i do that?
//Johan
<?php
echo "<h3>LDAP query test</h3>";
echo "Connecting ...";
$ds=ldap_connect("SERVER");
$dn = "o=Company, c=SV";
$filter="(|(sn=name)(givenname=name))";
$justthese = array( "ou", "sn", "givenname", "mail");
$sr=ldap_search($ds, $dn, $filter, $justthese);
$info = ldap_get_entries($ds, $sr);
print $info["count"]." entries returned<p>";
?>
Johan Vikerskog
Technician - CAE Tools Support
Research & Technology Development
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Ericsson Mobile Communications AB
Mobile Phones & Terminals Telephone: +46 46 19 33 38
Nya Vattentornet Telefax: +46 46 19 32 36
SE-221 83 Lund, Sweden