Zabbix2.0 and CAS complete the SSO single sign-on function. Download the php code from the Internet, deploy it locally, use the default configuration, and then modify the Zabbix authorization file so that it has Log in based on the user name (the CAS configuration is relatively simple), and a page "ssoLoing.php" for SSO seriousness was added. After all the tests passed, it was deployed to the production server. It was found that when the address of ssoLogin.php was entered, it jumped to the indexer. .php login page. I suspected that it was a problem with the configuration file, and then modified the local zabbix configuration (using the Admin account to modify the configuration), and found that when disabling Guests and disabling front-end access, there will be a problem of jumping to index.php, as shown below:
Then I took a detour and searched for the php configuration file, but no relevant configuration was found. Later, I suspected that it was the database configuration. I checked the database and found no relevant configuration. , finally looked at the configuration of index.php, and found "define('ZBX_PAGE_NO_AUTHORIZATION', true);", and then configured the file in ssoLogin.php, as shown below, the authorization problem of the page has been solved, it is a simple problem It’s complicated, you should check the index.php file first.