Annotation of embedaddon/php/ext/ldap/tests/ldap_sasl_bind_basic.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: ldap_sasl_bind() - Basic anonymous binding
3: --CREDITS--
4: Patrick Allaert <patrickallaert@php.net>
5: # Belgian PHP Testfest 2009
6: --SKIPIF--
7: <?php require_once('skipif.inc'); ?>
8: <?php if (!function_exists("ldap_sasl_bind")) die("skip LDAP extension not compiled with SASL support"); ?>
1.1.1.2 ! misho 9: <?php
! 10: require "connect.inc";
! 11: $link = fsockopen($host, $port);
! 12: if (!$link) {
! 13: die("skip no server listening");
! 14: }
! 15: ?>
1.1 misho 16: --FILE--
17: <?php
18: require "connect.inc";
19:
20: $link = ldap_connect($host, $port);
21: ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
22: var_dump(ldap_sasl_bind($link, null, $passwd, 'DIGEST-MD5', 'realm', $sasl_user));
23: ?>
24: ===DONE===
25: --EXPECT--
26: bool(true)
27: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>