1--TEST--
2ldap_compare() - Basic ldap_compare test
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--EXTENSIONS--
7ldap
8--SKIPIF--
9<?php require_once('skipifbindfailure.inc'); ?>
10--FILE--
11<?php
12require "connect.inc";
13
14$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
15insert_dummy_data($link, $base);
16var_dump(
17    ldap_compare($link, "cn=userA,$base", "sn", "testSN1"),
18    ldap_compare($link, "cn=userA,$base", "telephoneNumber", "yy-yy-yy-yy-yy")
19);
20?>
21--CLEAN--
22<?php
23include "connect.inc";
24
25$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
26remove_dummy_data($link, $base);
27?>
28--EXPECT--
29bool(true)
30bool(false)
31