4 include_once
'./Services/LDAP/classes/class.ilLDAPServer.php';
5 include_once
'./Services/LDAP/exceptions/class.ilLDAPSynchronisationForbiddenException.php';
6 include_once
'./Services/LDAP/exceptions/class.ilLDAPAccountMigrationRequiredException.php';
63 $this->extaccount = $a_ext;
90 $this->force_creation = $a_force;
95 $this->force_read_ldap_data = $a_status;
122 $this->user_data = (array) $a_data;
141 if (!$this->
getServer()->enabledSyncOnLogin()) {
162 if (!$this->
getServer()->enabledSyncOnLogin()) {
178 include_once
'./Services/User/classes/class.ilUserCreationContext.php';
181 include_once
'Services/LDAP/classes/class.ilLDAPAttributeToUser.php';
187 $update->setUserData(
209 if (!$this->force_read_ldap_data) {
210 if (substr($this->
getAuthMode(), 0, 4) ==
'ldap') {
215 include_once
'./Services/LDAP/classes/class.ilLDAPQuery.php';
254 include_once
'./Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
260 include_once
'./Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php';
274 $this->authmode = $a_auth_mode;
Description of ilLDAPSyncronisationException.
static hasRulesForUpdate()
Check if there any rule for updates.
performUpdate()
Update user account and role assignments.
getServer()
Get current ldap server.
static hasRulesForUpdate($a_server_id)
Check if there is ldap attribute -> user data mapping which which is updated on login.
static getInstance()
Get instance.
initServer($a_auth_mode, $a_server_id)
Init LDAP server.
getUserData()
Get user data.
Synchronization of user accounts used in auth container ldap, radius , cas,...
isCreationForced()
Check if creation of user account is forced (account migration)
isUpdateRequired()
Check if an update is required.
getInternalAccount()
Get ILIAS unique internal account name.
setExternalAccount($a_ext)
Set external account (unique for each auth mode)
Description of ilLDAPAccountMigrationRequiredException.
static getInstanceByServerId($a_server_id)
Get instance by server id.
const MODE_INITIALIZE_ROLES
handleCreation()
Handle creation of user accounts.
readUserData()
Read user data.
static _checkExternalAuthAccount($a_auth, $a_account, $tryFallback=true)
check whether external account and authentication method matches with a user
forceCreation($a_force)
Force cration of user accounts (Account migration enabled)
readInternalAccount()
Read internal account of user.
__construct($a_authmode, $a_server_id)
Constructor.
getAuthMode()
Get Auth Mode.
static getLogger($a_component_id)
Get component logger.
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping setting...
forceReadLdapData($a_status)
setUserData($a_data)
Set user data.
sync()
Synchronize user account.
getExternalAccount()
Get external accocunt.