1--TEST--
2ldap_get_entries() - Basic modify operation
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8<?php require_once('skipifbindfailure.inc'); ?>
9--FILE--
10<?php
11require "connect.inc";
12
13$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14insert_dummy_data($link, $base);
15
16var_dump(
17	ldap_get_entries(
18		$link,
19		ldap_search($link, "$base", "(o=test)")
20	)
21);
22?>
23===DONE===
24--CLEAN--
25<?php
26require "connect.inc";
27
28$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
29remove_dummy_data($link, $base);
30?>
31--EXPECTF--
32array(2) {
33  ["count"]=>
34  int(1)
35  [0]=>
36  array(6) {
37    ["objectclass"]=>
38    array(3) {
39      ["count"]=>
40      int(2)
41      [0]=>
42      string(3) "top"
43      [1]=>
44      string(12) "organization"
45    }
46    [0]=>
47    string(11) "objectclass"
48    ["o"]=>
49    array(2) {
50      ["count"]=>
51      int(1)
52      [0]=>
53      string(4) "test"
54    }
55    [1]=>
56    string(1) "o"
57    ["count"]=>
58    int(2)
59    ["dn"]=>
60    string(%d) "o=test,%s"
61  }
62}
63===DONE===
64