Alain-Aymerick FRANCOIS
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Cassify] Last version of WP-Cassify break loginHi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
‘sslverify’ => falseKeep me informed if it solve the problem.
Forum: Plugins
In reply to: [WP Cassify] Error after entering username and password in CAS login screen.Ok, patch the function like this while new version of plugin are being released :
public static function wp_cassify_do_ssl_web_request( $url, $ssl_cipher ) {
if (! function_exists ( ‘curl_init’ ) ) {
die( ‘Please install php cURL library !’);
}$ch = curl_init();
curl_setopt( $ch, CURLOPT_HEADER, false );
curl_setopt( $ch, CURLOPT_URL, $url ) ;
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 1);//curl_setopt( $ch, CURLOPT_USERAGENT,’Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13′ );
curl_setopt( $ch, CURLOPT_SSLVERSION, 0 );if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
curl_setopt( $ch, CURLOPT_VERBOSE, true );
}$response = curl_exec( $ch );
if( curl_errno( $ch ) ) {
if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
$info = curl_getinfo( $ch );
die( ‘Curl error: ‘ . curl_error( $ch ) . print_r( $info, TRUE ) );
}
else {
die( ‘Curl error: active WP_DEBUG in wp-config.php’);
}
}curl_close( $ch );
return $response;
}Forum: Plugins
In reply to: [WP Cassify] How to a specify the correct CA certificateHi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
‘sslverify’ => falseKeep me informed if it solve the problem.
If it’s not work, reinstall the previous version 1.5.6, and then i publish a fix quickly.
Forum: Plugins
In reply to: [WP Cassify] Error after entering username and password in CAS login screen.Hi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
‘sslverify’ => falseKeep me informed if it solve the problem.
If it’s not work, reinstall the previous version 1.5.6, and then i publish a fix quickly.
Forum: Plugins
In reply to: [WP Cassify] Last version of WP-Cassify break loginHi,
On latest release, i ve’ rewrited wp_cassify_do_ssl_web_request to not using php cURL function. I use the native WordPress function ‘wp_remote_get’ to perform the webrequest instead of php-cURL functions.
I ve not succeed to reproduce the bug.
In your wp-config please set this :
@ini_set(‘display_errors’,’Off’);
@ini_set(‘log_errors’,’On’);
@ini_set(‘error_log’,’/var/www/your-website/phperrors.log’);Then in classes/wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function write this before return :
error_log( print_r( $response[‘body’], TRUE ) );
At the end, send me the phperrors.log content. This will show the CAS Ticket content after serviceValidate.