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->setNewUserAuthMode($this->current_server->getAuthenticationMappingKey());
81 #$GLOBALS['ilLog']->write(print_r($users,true));
82 $this->ldap_to_ilias->setUserData($users);
83 $this->ldap_to_ilias->refresh();
84 $this->log->write(
"LDAP: Finished update/creation");
88 $this->log->write(
"LDAP: No users for update/create. Aborting.");
93 $this->log->write($exc->getMessage());
106 include_once
'./Services/User/classes/class.ilObjUser.php';
110 if(!array_key_exists($external_account,$a_ldap_users))
118 $this->log->write(
'LDAP: Found '.count($inactive).
' inactive users.');
122 $this->log->write(
'LDAP: No inactive users found');