mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
20 lines
438 B
PHP
20 lines
438 B
PHP
--TEST--
|
|
ldap_set_option() - Basic test for TLS cipher suite ldap option
|
|
--CREDITS--
|
|
Chad Sikorra <Chad.Sikorra@gmail.com>
|
|
--EXTENSIONS--
|
|
ldap
|
|
--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);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
string(4) "3DES"
|