php-src/ext/ldap/tests/ldap_set_option_ciphersuite_basic.phpt
2016-06-15 23:01:26 -05:00

23 lines
488 B
PHP

--TEST--
ldap_set_option() - Basic test for TLS cipher suite ldap option
--CREDITS--
Chad Sikorra <Chad.Sikorra@gmail.com>
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
$result = ldap_set_option($link, LDAP_OPT_X_TLS_CIPHER_SUITE, '3DES');
var_dump($result);
ldap_get_option($link, LDAP_OPT_X_TLS_CIPHER_SUITE, $optionval);
var_dump($optionval);
?>
===DONE===
--EXPECT--
bool(true)
string(4) "3DES"
===DONE===