41 static $auth_instance;
42 if (!isset($auth_instance) OR (
bool)$_force) {
44 $authConfig =
$xoops->getConfigs();
45 if (empty($authConfig[
'auth_method'])) {
46 $xoops_auth_method =
'xoops';
48 $xoops_auth_method = $authConfig[
'auth_method'];
51 if (isset($authConfig[
'ldap_users_bypass']) && in_array(
$uname, $authConfig[
'ldap_users_bypass'])) {
52 $xoops_auth_method =
'xoops';
55 $class =
'\\Xoops\\Auth\\' . ucfirst($xoops_auth_method);
56 if (!class_exists($class)) {
61 switch ($xoops_auth_method) {
72 $auth_instance =
new $class($dao);
74 return $auth_instance;
static getAuthConnection($uname, $_force=false)