19 declare(strict_types=1);
38 public function __construct(
string $a_authmode,
int $a_server_id)
42 $this->
logger = $DIC->logger()->auth();
68 $this->extaccount = $a_ext;
93 $this->force_creation = $a_force;
98 $this->force_read_ldap_data = $a_status;
115 $this->user_data = $a_data;
135 if (!$this->
getServer()->enabledSyncOnLogin()) {
156 if (!$this->
getServer()->enabledSyncOnLogin()) {
160 if (!$this->force_creation && $this->
getServer()->isAccountMigrationEnabled()) {
174 if ($this->force_creation) {
200 if (!$this->force_read_ldap_data && strpos($this->
getAuthMode(),
'ldap') === 0) {
211 $this->
logger->error(
'LDAP bind failed with message: ' . $e->getMessage());
239 if ($this->force_creation) {
262 protected function initServer(
string $a_auth_mode,
int $a_server_id): void
264 $this->authmode = $a_auth_mode;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static hasRulesForUpdate()
Check if there any rule for updates.
initServer(string $a_auth_mode, int $a_server_id)
Init LDAP server.
performUpdate()
Update user account and role assignments.
static getLogger(string $a_component_id)
Get component logger.
getServer()
Get current ldap server.
static getInstanceByServerId(int $a_server_id)
Get instance by server id.
__construct(string $a_authmode, int $a_server_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUserData()
Get user data.
Synchronization of user accounts used in auth container ldap, cas,...
isUpdateRequired()
Check if an update is required.
getInternalAccount()
Get ILIAS unique internal account name.
static _checkExternalAuthAccount(string $a_auth, string $a_account, bool $tryFallback=true)
check whether external account and authentication method matches with a user
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setUserData(array $a_data)
Set user data.
setExternalAccount(string $a_ext)
Set external account (unique for each auth mode)
const MODE_INITIALIZE_ROLES
handleCreation()
Handle creation of user accounts.
readUserData()
Read user data.
readInternalAccount()
Read internal account of user.
forceReadLdapData(bool $a_status)
getAuthMode()
Get Auth Mode.
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping setting...
forceCreation(bool $a_force)
Force cration of user accounts (Account migration enabled)
bool $force_read_ldap_data
sync()
Synchronize user account.
static hasRulesForUpdate(int $a_server_id)
Check if there is ldap attribute -> user data mapping which which is updated on login.
getExternalAccount()
Get external accocunt.