Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AD / LDAP Authentication
#5
We don't use config.inc.php in order to avoid conflicts. For example, if we add it there now, we would force every corebos install to manually update their config.inc.php file and  we couldn't add the change in git.

Either we create new GVs or we create an integration page if the settings require more than one/two variables.

In this case I would create a new variable named User_MandatoryAuthenticationSQL and do something like


Code:
$sql_auth_users = GlobalVariable::getVariable('User_MandatoryAuthenticationSQL', 'admin', 'Users', $userid);
$sql_auth_users = explode(',', $sql_auth_users);
if (in_array($usr_name, $sql_auth_users)) {
   $this->log->debug("$usr_name exists in sql_auth_users, so using SQL Authentication");
  $authType = 'SQL';
}


I understand that the change I made above retrieves the correct Global Variable value?  That worked?
Joe
TSolucio
Reply


Messages In This Thread
AD / LDAP Authentication - by gaardam - 08-26-2019, 02:53 AM
RE: AD / LDAP Authentication - by gaardam - 08-28-2019, 01:22 AM
RE: AD / LDAP Authentication - by joebordes - 08-28-2019, 08:44 AM
RE: AD / LDAP Authentication - by gaardam - 08-28-2019, 10:58 PM
RE: AD / LDAP Authentication - by joebordes - 08-28-2019, 11:24 PM
RE: AD / LDAP Authentication - by gaardam - 08-28-2019, 11:34 PM
RE: AD / LDAP Authentication - by joebordes - 08-28-2019, 11:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)