24 include_once 
'Auth/Container/LDAP.php';
 
   58                 include_once 
'Services/LDAP/classes/class.ilLDAPServer.php';
 
   67                 self::$force_creation = $a_status;
 
   79                 $this->optional_check = 
true;
 
  102                 if(!$this->server->doConnectionCheck())
 
  112                         $this->
log(
'Container '.$key.
': '.
$res->getMessage(), AUTH_LOG_ERR);
 
  115                 elseif (
$res == 
true)
 
  139                 $this->
log->write(__METHOD__.
': checking group restrictions...');
 
  142                 $groups = $this->server->getGroupNames();
 
  146                         $this->
log->write(__METHOD__.
': No group restrictions found.');
 
  151                         $this->
log->write(__METHOD__.
': Group membership is optional.');
 
  155                 foreach($groups as $group)
 
  157                         $this->options[
'group'] = $group;
 
  159                         if(parent::checkGroup($a_name))
 
  175                 $this->options[
'userfilter'] = $this->server->getGroupUserFilter();
 
  187                 $user_data = array_change_key_case($a_auth->getAuthData(),CASE_LOWER);
 
  191                 include_once 
'./Services/LDAP/classes/class.ilLDAPUserSynchronisation.php';
 
  194                 $sync->setUserData($user_data);
 
  195                 $sync->forceCreation(self::$force_creation);
 
  198                         $internal_account = $sync->sync();
 
  200                 catch(UnexpectedValueException $e) {
 
  201                         $GLOBALS[
'ilLog']->write(__METHOD__.
': Login failed with message: '. $e->getMessage());
 
  208                         $GLOBALS[
'ilLog']->write(__METHOD__.
': Login failed with message: '. $e->getMessage());
 
  214                         $GLOBALS[
'ilLog']->write(__METHOD__.
': Starting account migration.');
 
  216                         ilUtil::redirect(
'ilias.php?baseClass=ilStartUpGUI&cmdClass=ilstartupgui&cmd=showAccountMigration');
 
  219                 $a_auth->setAuth($internal_account);
 
  230                 include_once(
'Services/LDAP/classes/class.ilLDAPAttributeToUser.php');
 
  251                 $a_username = isset($a_user_data[strtolower($this->server->getUserAttribute())]) ? 
 
  252                         $a_user_data[strtolower($this->server->getUserAttribute())] :
 
  256                 if(!is_array($a_username))
 
  260                 foreach($a_username as $name)
 
  269                 return $a_username[0];                          
 
  281                         #$GLOBALS['ilLog']->write(__METHOD__.': Required 1'); 
  285                 include_once 
'./Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
 
  288                         #$GLOBALS['ilLog']->write(__METHOD__.': Required 2'); 
  291                 include_once 
'./Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php';
 
  294                         #$GLOBALS['ilLog']->write(__METHOD__.': Required 3');