1--TEST--
2ldap_exop_whoami() - EXOP whoami operation
3--CREDITS--
4Côme Chilliet <mcmic@php.net>
5--EXTENSIONS--
6ldap
7--SKIPIF--
8<?php require_once('skipifbindfailure.inc'); ?>
9--FILE--
10<?php
11require "connect.inc";
12
13$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
14insert_dummy_data($link, $base);
15
16var_dump(
17  ldap_exop_whoami($link)
18);
19?>
20--CLEAN--
21<?php
22require "connect.inc";
23
24$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
25
26remove_dummy_data($link, $base);
27?>
28--EXPECTF--
29string(%d) "dn:%s"
30