mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
23 lines
488 B
PHP
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===
|