mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-18 20:49:27 +00:00
04b1ec327a
- It contains the following entries: - List of permissions that are allowed to perform loginAs - List of permissions that cannot be gained with loginAs - List of users whose identity cannot be obtained with loginAs - Removed config entries authentication_loginas_perms and authentication_loginas_blacklist from config file auth.php - Added constants to PermissionLib: LOGINAS_ALLOWED, LOGINAS_BLACKLIST and LOGINAS_USERS_BLACKLIST - PermissionLib loads the config file permission.php - Added public method isEntitledLoginAS to PermissionLib - Added private methods _inLAUsersBlacklist, _hasLANotAllowedPermissions and _hasLAPermissions to PermissionLib - Added public method loginAS to AuthLib - Fixed logout method in AuthLib - Fixed loginLDAP method in AuthLib
19 lines
621 B
PHP
19 lines
621 B
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
// Array or a string of authentication methods sorted by priority (highest to lowest)
|
|
// NOTE: AUTH_HBALDAP works also as login page (old ugly HTTP basic authentication)
|
|
// should be placed at the end of the array
|
|
$config['authentication_foreign_methods'] = array(AUTH_BT, AUTH_HBALDAP);
|
|
|
|
// Login method
|
|
$config['authentication_login'] = AUTH_LDAP;
|
|
|
|
// Array of login pages
|
|
$config['authentication_login_pages'] = array(
|
|
AUTH_DB => '/system/Login/emailCode',
|
|
AUTH_LDAP => '/system/Login/usernamePassword',
|
|
AUTH_SSO => '/system/Login/sso'
|
|
);
|