Hi, Thanks, it worked, it was quite tricky, since numbers are not being passed with ""
Thanks a lot!
On 21/06/16 09:43, Mads Boye wrote:
Hi. I have had CAS authentication working for some time now. Here is my config.php
$config['auth_mechanism'] = "cas"; // default, other options: ldap, http-auth, please see documentation for config help #$config['auth_mechanism'] = "mysql"; // default, other options: ldap, http-auth, please see documentation for config help
$config['auth_cas_host'] = "mycas.server.dk"; $config['auth_cas_port'] = 443; $config['auth_cas_context'] = "/cas"; $config['auth_cas_ca_cert'] ="/etc/ssl/certs/Mytlscert.crt";
I've installed phpcas with pear pear install https://developer.jasig.org/cas-clients/php/current.tgz
A important note is that you must have the users which you will grant access in the observium database, which means you must run add_user.php for each username. At least that was what got it working for me. So you need a local account must switch auth_mechanism to mysql, when granting new user access to observium.
On Fri, 2016-06-17 at 16:16 +0200, Josep Manel Andrés wrote:
Hi all, I've seen that CAS authentication is already integrated, but I've found no documentation.
I've tried to set:
vi /opt/observium/config.php
// Authentication Model $config['auth_mechanism'] = 'cas'; $config['auth_cas_host'] = 'cas02.domain.es'; $config['auth_cas_port'] = '443'; $config['auth_cas_context'] = 'cas'; $config['auth_cas_ca_cert'] = '/etc/tls/cacert/DigiCertCA'; //$config['auth_mechanism'] = "http-auth"; //$config['http_auth_guest'] = "admin";
but it didn't work, I get "Error: Internal script failure" which comes from phpcas.
I've installed the latest version of phpcas from the original source.
Thanks.