php-src/ext/ldap/tests/ldap_bind_variation.phpt
2009-09-26 17:59:33 +00:00

21 lines
491 B
PHP

--TEST--
ldap_bind() - Advanced binding
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
<?php require_once dirname(__FILE__) .'/skipifbindfailure.inc'; ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
var_dump(ldap_bind($link, $user, $passwd));
?>
===DONE===
--EXPECT--
bool(true)
===DONE===