1--TEST--
2ldap_mod_del() - 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
16$entry = array(
17    "description" => "user A"
18);
19
20var_dump(
21    ldap_mod_del($link, "cn=userA,$base", $entry),
22    ldap_get_entries(
23        $link,
24        ldap_search($link, "$base", "(description=user A)")
25    )
26);
27?>
28--CLEAN--
29<?php
30require "connect.inc";
31
32$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
33
34remove_dummy_data($link, $base);
35?>
36--EXPECT--
37bool(true)
38array(1) {
39  ["count"]=>
40  int(0)
41}
42