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--CLEAN--
21<?php
22require "connect.inc";
23
24$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
25
26remove_dummy_data($link, $base);
27?>
28--EXPECTF--
29string(%d) "dn:%s"
30