4include_once
'./Services/LDAP/classes/class.ilLDAPServer.php';
5include_once
'./Services/LDAP/exceptions/class.ilLDAPSynchronisationForbiddenException.php';
6include_once
'./Services/LDAP/exceptions/class.ilLDAPAccountMigrationRequiredException.php';
62 $this->extaccount = $a_ext;
89 $this->force_creation = $a_force;
116 $this->user_data = (array) $a_data;
131 #$GLOBALS['ilLog']->write(__METHOD__.'Creating new account');
136 if(!$this->
getServer()->enabledSyncOnLogin())
158 if(!$this->
getServer()->enabledSyncOnLogin())
183 include_once
'./Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php';
190 foreach($roles as $info)
206 #$GLOBALS['ilLog']->write(__METHOD__.': '.print_r($this->getUserData(),true));
208 include_once
'./Services/User/classes/class.ilUserCreationContext.php';
211 include_once
'Services/LDAP/classes/class.ilLDAPAttributeToUser.php';
214 $update->setUserData(
239 include_once
'./Services/LDAP/classes/class.ilLDAPQuery.php';
255 throw new UnexpectedValueException(
'No external account given.');
275 include_once
'./Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
282 include_once
'./Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php';
297 $this->authmode = $a_auth_mode;
Description of ilLDAPAccountMigrationRequiredException.
static hasRulesForUpdate($a_server_id)
Check if there is ldap attribute -> user data mapping which which is updated on login.
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping setting...
static hasRulesForUpdate()
Check if there any rule for updates.
static getAssignmentsForCreation($a_usr_name, $a_usr_data)
static getInstanceByServerId($a_server_id)
Description of ilLDAPSyncronisationException.
Synchronization of user accounts used in auth container ldap, radius , cas,...
getInternalAccount()
Get ILIAS unique internal account name.
isCreationForced()
Check if creation of user account is forced (account migration)
getServer()
Get current ldap server.
forceCreation($a_force)
Force cration of user accounts (Account migration enabled)
performUpdate()
Update user account and role assignments.
setUserData($a_data)
Set user data.
initServer($a_auth_mode, $a_server_id)
Init LDAP server.
isUpdateRequired()
Check if an update is required.
handleAccountMigration()
Handle account migration.
handleCreation()
Handle creation of user accounts.
getExternalAccount()
Get external accocunt.
readInternalAccount()
Read internal account of user.
sync()
Synchronize user account.
__construct($a_authmode, $a_server_id)
Constructor.
setExternalAccount($a_ext)
Set external account (unique for each auth mode)
getAuthMode()
Get Auth Mode.
readUserData()
Read user data.
getUserData()
Get user data.
static _checkExternalAuthAccount($a_auth, $a_account)
check whether external account and authentication method matches with a user
static getInstance()
Get instance.