예제 #1
0
 /**
  * Constructur
  *
  * @access private
  * @param object ilLDAPServer or subclass
  * @throws ilLDAPQueryException
  * 
  */
 public function __construct(ilLDAPServer $a_server, $a_url = '')
 {
     global $ilLog;
     $this->settings = $a_server;
     if (strlen($a_url)) {
         $this->ldap_server_url = $a_url;
     } else {
         $this->ldap_server_url = $this->settings->getUrl();
     }
     $this->mapping = ilLDAPAttributeMapping::_getInstanceByServerId($this->settings->getServerId());
     $this->log = $ilLog;
     $this->fetchUserProfileFields();
     $this->connect();
 }
 private function initAttributeMapping()
 {
     include_once './Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
     $this->mapping = ilLDAPAttributeMapping::_getInstanceByServerId((int) $_GET['ldap_server_id']);
 }
예제 #3
0
 /**
  * Get attribute array for pear auth data
  *
  * @access private
  * @param 
  * 
  */
 private function getPearAtributeArray()
 {
     if ($this->enabledSyncOnLogin()) {
         include_once 'Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
         include_once 'Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php';
         $mapping = ilLDAPAttributeMapping::_getInstanceByServerId($this->getServerId());
         return array_merge(array($this->getUserAttribute()), $mapping->getFields(), array('dn'), ilLDAPRoleAssignmentRules::getAttributeNames());
     } else {
         return array($this->getUserAttribute());
     }
 }
 private function initLDAPAttributeMapping()
 {
     include_once 'Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
     $this->mapping = ilLDAPAttributeMapping::_getInstanceByServerId($this->server_settings->getServerId());
 }