32 include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
33 include_once(
'Services/LDAP/classes/class.ilLDAPQuery.php');
34 include_once(
'Services/LDAP/classes/class.ilLDAPAttributeToUser.php');
64 $this->current_server->doConnectionCheck();
65 $this->log->write(
"LDAP: starting user synchronization for ".$this->current_server->getName());
67 $this->ldap_query =
new ilLDAPQuery($this->current_server);
70 if(is_array($users = $this->ldap_query->fetchUsers()))
78 $this->log->write(
"LDAP: Starting update/creation of users ...");
80 $this->ldap_to_ilias->setUserData($users);
81 $this->ldap_to_ilias->refresh();
82 $this->log->write(
"LDAP: Finished update/creation");
86 $this->log->write(
"LDAP: No users for update/create. Aborting.");
91 $this->log->write($exc->getMessage());
104 include_once
'./Services/User/classes/class.ilObjUser.php';
108 if(!array_key_exists($external_account,$a_ldap_users))
110 $inactive[] = $usr_id;
116 $this->log->write(
'LDAP: Found '.count($inactive).
' inactive users.');
120 $this->log->write(
'LDAP: No inactive users found');