note 21857 deleted from function.ldap-next-entry by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 09:02:34 +0000 |
| Subject: | note 21857 deleted from function.ldap-next-entry by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196846@lists.php.net to get a copy of this message | ||
Note Submitter: snameche at virtual-net dot fr
----
A short example :
$qry = ldap_search( $cxion, $ldap_base, '(cn=seb*)' );
$entry = ldap_first_entry( $cxion, $qry );
while( $entry ){
$dn = ldap_get_dn( $cxion, $entry );
echo "<b>$dn</b><br>\n";
$attrs = ldap_get_attributes( $cxion, $entry );
for( $i=0; $i<$attrs['count']; $i++ ){
echo "$attrs[$i]: ";
for( $j=0; $j<$attrs[$attrs[$i]]['count']; $j++ )
echo $attrs[$attrs[$i]][$j] . " ";
echo "<br>\n";
}
echo "\<br>\n";
$entry = ldap_next_entry( $cxion, $entry );
}
ldap_free_result( $qry );