mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-45981 auth_cas: coding style fixing
This commit is contained in:
parent
6d4cae04b6
commit
9b3ae641e4
@ -183,9 +183,9 @@ class auth_plugin_cas extends auth_plugin_ldap {
|
||||
} else {
|
||||
phpCAS::client($this->config->casversion, $this->config->hostname, (int) $this->config->port, $this->config->baseuri, false);
|
||||
}
|
||||
//Some CAS installs require SSLv3, etc be explicitly set.
|
||||
// Some CAS installs require SSLv3 that should be explicitly set.
|
||||
if (!empty($this->config->curl_ssl_version)) {
|
||||
phpCAS::setExtraCurlOption(CURLOPT_SSLVERSION,$this->config->curl_ssl_version);
|
||||
phpCAS::setExtraCurlOption(CURLOPT_SSLVERSION, $this->config->curl_ssl_version);
|
||||
}
|
||||
|
||||
$connected = true;
|
||||
|
@ -33,7 +33,7 @@ if (!isset ($config->certificate_check)) {
|
||||
if (!isset ($config->certificate_path)) {
|
||||
$config->certificate_path = '';
|
||||
}
|
||||
if (!isset ($config->curl_ssl_version)) {
|
||||
if (!isset($config->curl_ssl_version)) {
|
||||
$config->curl_ssl_version = '';
|
||||
}
|
||||
if (!isset($config->logout_return_url)) {
|
||||
|
@ -35,10 +35,10 @@ $string['auth_cas_certificate_path_empty'] = 'If you turn on Server validation,
|
||||
$string['auth_cas_certificate_check_key'] = 'Server validation';
|
||||
$string['auth_cas_certificate_path'] = 'Path of the CA chain file (PEM Format) to validate the server certificate';
|
||||
$string['auth_cas_certificate_path_key'] = 'Certificate path';
|
||||
$string['auth_cas_curl_ssl_version'] = 'The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.';
|
||||
$string['auth_cas_curl_ssl_version_key'] = 'cURL SSL Version';
|
||||
$string['auth_cas_create_user'] = 'Turn this on if you want to insert CAS-authenticated users in Moodle database. If not then only users who already exist in the Moodle database can log in.';
|
||||
$string['auth_cas_create_user_key'] = 'Create user';
|
||||
$string['auth_cas_curl_ssl_version'] = 'The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.';
|
||||
$string['auth_cas_curl_ssl_version_key'] = 'cURL SSL Version';
|
||||
$string['auth_casdescription'] = 'This method uses a CAS server (Central Authentication Service) to authenticate users in a Single Sign On environment (SSO). You can also use a simple LDAP authentication. If the given username and password are valid according to CAS, Moodle creates a new user entry in its database, taking user attributes from LDAP if required. On following logins only the username and password are checked.';
|
||||
$string['auth_cas_enabled'] = 'Turn this on if you want to use CAS authentication.';
|
||||
$string['auth_cas_hostname'] = 'Hostname of the CAS server <br />eg: host.domain.fr';
|
||||
|
Loading…
x
Reference in New Issue
Block a user