packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/functions.php
changeset 8 f68fdcc18df9
parent 4 2212b2ded8bf
equal deleted inserted replaced
5:cdd708efa505 8:f68fdcc18df9
    32 }
    32 }
    33 
    33 
    34 function load_credentials()
    34 function load_credentials()
    35 {
    35 {
    36 	$config = yaml_parse_file("/usr/local/etc/ssoinabox/webcreds.yml");
    36 	$config = yaml_parse_file("/usr/local/etc/ssoinabox/webcreds.yml");
    37 	$keys = array('LDAP_BASEDN', 'UID_MIN', 'GID_MIN', 'ldap_server', 'ldap_manager', 'ldap_user_basedn', 'ldap_group_basedn', 'kerberos_admin', 'PHONE_EXT_MIN', 'hmac_secret');
    37 	$keys = array('LDAP_BASEDN', 'UID_MIN', 'GID_MIN', 'ldap_server', 'ldap_manager', 'ldap_user_basedn', 'ldap_group_basedn', 'kerberos_admin', 'PHONE_EXT_MIN', 'hmac_secret', 'mysql');
    38 	
    38 	
    39 	foreach ( $keys as $key )
    39 	foreach ( $keys as $key )
    40 	{
    40 	{
    41 		if ( !isset($config[$key]) )
    41 		if ( !isset($config[$key]) )
    42 			die("Config key $key is not set");
    42 			die("Config key $key is not set");