mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
3207747b9e
See discussion on internals ML
32 lines
650 B
PHP
32 lines
650 B
PHP
--TEST--
|
|
ldap_exop_whoami() - EXOP whoami operation
|
|
--CREDITS--
|
|
Côme Chilliet <mcmic@php.net>
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php require_once('skipifbindfailure.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
|
|
insert_dummy_data($link, $base);
|
|
|
|
// ldap_exop_whoami(resource link [, string authzid])
|
|
var_dump(
|
|
ldap_exop_whoami($link)
|
|
);
|
|
?>
|
|
===DONE===
|
|
--CLEAN--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
|
|
|
|
remove_dummy_data($link, $base);
|
|
?>
|
|
--EXPECTF--
|
|
string(%d) "dn:%s"
|
|
===DONE===
|