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