08-28-2019, 10:58 PM
Code:
if ($this->is_admin) {
$authType = 'SQL'; // admin users always login locally
}
In the PDF, linked on the doc page at : http://corebos.com/documentation/lib/exe...n-v1.0.pdf
There is the following line in include/ldap/config.ldap.php :
Code:
$AUTHCFG['sql_account'] = array('admin', 'sqluser');
This applies to more than just LDAP - so maybe it could be in config.inc.php?
Code:
$usr_name = $this->column_fields["user_name"];
$result = $this->db->pquery('select id from vtiger_users where user_name=?', array($usr_name));
if ($result && $this->db->num_rows($result)==1) {
$row = $this->db->fetchByAssoc($result);
$userid = $row['id'];
} else {
return false;
}
$authType = GlobalVariable::getVariable('User_AuthenticationType', 'SQL', 'Users', $userid);
$sql_auth_users = array('admin','sqluser'); // Move to config.inc.php?
if (in_array($usr_name, $sql_auth_users)) {
$this->log->debug("$usr_name exists in sql_auth_users, so using SQL Authentication");
$authType = 'SQL';
}