◆ addToExternalSettingsForm()
ilLDAPCronSynchronization::addToExternalSettingsForm |
( |
|
$a_form_id, |
|
|
array & |
$a_fields, |
|
|
|
$a_is_active |
|
) |
| |
◆ deactivateUsers()
ilLDAPCronSynchronization::deactivateUsers |
( |
ilLDAPServer |
$server, |
|
|
|
$a_ldap_users |
|
) |
| |
|
private |
◆ getDefaultScheduleType()
ilLDAPCronSynchronization::getDefaultScheduleType |
( |
| ) |
|
◆ getDefaultScheduleValue()
ilLDAPCronSynchronization::getDefaultScheduleValue |
( |
| ) |
|
◆ getDescription()
ilLDAPCronSynchronization::getDescription |
( |
| ) |
|
◆ getId()
ilLDAPCronSynchronization::getId |
( |
| ) |
|
◆ getTitle()
ilLDAPCronSynchronization::getTitle |
( |
| ) |
|
◆ hasAutoActivation()
ilLDAPCronSynchronization::hasAutoActivation |
( |
| ) |
|
◆ hasFlexibleSchedule()
ilLDAPCronSynchronization::hasFlexibleSchedule |
( |
| ) |
|
◆ run()
ilLDAPCronSynchronization::run |
( |
| ) |
|
Definition at line 65 of file class.ilLDAPCronSynchronization.php.
References $ilLog, $messages, $result, ilLDAPServer\_getCronServerIds(), deactivateUsers(), IL_LDAP_BIND_DEFAULT, ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.
77 $this->current_server->doConnectionCheck();
78 $ilLog->write(
"LDAP: starting user synchronization for ".$this->current_server->getName());
80 $this->ldap_query =
new ilLDAPQuery($this->current_server);
83 if(is_array($users = $this->ldap_query->fetchUsers()))
91 $ilLog->write(
"LDAP: Starting update/creation of users ...");
93 $this->ldap_to_ilias->setNewUserAuthMode($this->current_server->getAuthenticationMappingKey());
94 #$ilLog->write(print_r($users,true)); 95 $this->ldap_to_ilias->setUserData($users);
96 $this->ldap_to_ilias->refresh();
97 $ilLog->write(
"LDAP: Finished update/creation");
103 $ilLog->write(
"LDAP: No users for update/create. Aborting.");
108 $mess = $exc->getMessage();
109 $ilLog->write($mess);
const IL_LDAP_BIND_DEFAULT
deactivateUsers(ilLDAPServer $server, $a_ldap_users)
Deactivate users that are disabled in LDAP.
static _getCronServerIds()
Get list of acticve servers with option 'SyncCron'.
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping setting...
Cron job result data container.
◆ $counter
ilLDAPCronSynchronization::$counter = 0 |
|
private |
◆ $current_server
ilLDAPCronSynchronization::$current_server = null |
|
private |
◆ $ldap_query
ilLDAPCronSynchronization::$ldap_query = null |
|
private |
◆ $ldap_to_ilias
ilLDAPCronSynchronization::$ldap_to_ilias = null |
|
private |
The documentation for this class was generated from the following file: