SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 391 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

The filter we use to describe this is
(objectClass=Person). This will filter out any LDAP objects that are not of the
class Person:
$filters = array('(objectClass=Person)');
$results = $client->search($filters);
Notice that $filters is an array. This is because we are able to supply multiple
searches at once. When we do this the results are combined into a single result set.
If we don't want to search the base DN, we can specify a different DN to search
within. The screenshot we showed earlier describes users in the people OU. We can
restrict the search to this OU:
$people = 'ou=people,dc=example,dc=org'
$results = $client->search($filters, $people);
Once the search has been performed, $results is populated with an array of
results. Each result is represented as an associative array. Our next task is to
present the results:
for ($i = 0, $c = count($results); $i < $c; $i ++)
{
$result =& $results[$i];
echo '
';
echo ''.$result['givenName'][0].'
';
echo $result['description'][0].


Pages:
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6