Hi any one have help me out to implementation in CAS authentication in SUITECRM 7.10.27.
Thanks
Hi any one have help me out to implementation in CAS authentication in SUITECRM 7.10.27.
Thanks
It’s not working.
I am implemented the CAS but after CAS login home page, index.php, Repair and rebuild most of the pages is not working.
Any one kindly help me.
Thanks
Sorry, I don’t use CAS and you don’t give details.
Do you saw as working LDAP Authentication (modules/Users/authentication/LDAPAuthenticate
)?
Hi @kumaran3657,
We implemented phpCAS inside our suitecrm 7.10.x version. You need to download phpcas. You can achieve that adding it to the composer.ext.json file.
Cheers!
Luciano Rossi
Hi Thanks for Supporting me… I integrated yesterday. Now it’s working for me.
Get the CAS Package from here https://apereo.atlassian.net/wiki/spaces/CASC/pages/103252517/phpCAS
Add the code into your config.php file.
'authenticationClass' => 'CASAuthenticate',
'cas' => array(
'library' => ' Path to the phpCAS/CAS.php',
'hostname' => 'URL of the host',
'port' => PORT of the host,
'uri' => '',
'changeSessionID' => FALSE,
'proxies' => array(
'HOST URL',
),
'logout_return_url' => 'YOUR Local index page url',
),
If you want CAS login users to store your DB To Customise the modules/Users/authentication/CASAuthenticate/CASAuthenticateUser.php page.
Function Name : authUser()
if(phpCAS::isAuthenticated() == 1 && phpCAS::isSessionAuthenticated() ==1) {
if(!empty($_SESSION['authenticated_user_id']) || !empty($user_name)){
**$GLOBALS['current_user'] = $this->createOrUpdateuser();**
$dbresult = DBManagerFactory::getInstance()->query(
"SELECT id, status FROM users WHERE user_name='"
.$user_name . "' AND deleted = 0"
);
if ($row = DBManagerFactory::getInstance()->fetchByAssoc($dbresult)) {
if ($row['status'] != 'Inactive') {
return $this->loadUserOnSession($row['id']);
} else {
return '';
}
}
}
}
Like you can $this->createOrUpdateuser(); this kind of function inside the page and add it your’s needed data into your Table.