Skip to content
Snippets Groups Projects
Commit 5eb524b2 authored by Olav Morken's avatar Olav Morken
Browse files

frontpage: Only show warnings about ldap & radius if those modules are enabled.

Thanks to Gordon Franke for providing this fix!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2993 44740490-163a-0410-bde0-09ae8108e29a
parent c304c3d5
No related branches found
No related tags found
No related merge requests found
...@@ -81,11 +81,16 @@ $functionchecks = array( ...@@ -81,11 +81,16 @@ $functionchecks = array(
'simplexml_import_dom' => array('required', 'SimpleXML'), 'simplexml_import_dom' => array('required', 'SimpleXML'),
'dom_import_simplexml' => array('required', 'XML DOM'), 'dom_import_simplexml' => array('required', 'XML DOM'),
'preg_match' => array('required', 'RegEx support'), 'preg_match' => array('required', 'RegEx support'),
'ldap_bind' => array('required_ldap', 'LDAP Extension'),
'radius_auth_open' => array('required_radius', 'Radius Extension'),
'mcrypt_module_open'=> array('optional', 'MCrypt'), 'mcrypt_module_open'=> array('optional', 'MCrypt'),
'mysql_connect' => array('optional', 'MySQL support'), 'mysql_connect' => array('optional', 'MySQL support'),
); );
if (SimpleSAML_Module::isModuleEnabled('ldap')) {
$functionchecks['ldap_bind'] = array('required_ldap', 'LDAP Extension');
}
if (SimpleSAML_Module::isModuleEnabled('radius')) {
$functionchecks['radius_auth_open'] = array('required_radius', 'Radius Extension');
}
$funcmatrix = array(); $funcmatrix = array();
$funcmatrix[] = array( $funcmatrix[] = array(
'required' => 'required', 'required' => 'required',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment