Пример #1
0
 /**
  * fetch required fields of user profile data
  *
  * @access private
  * @param
  * 
  */
 private function fetchUserProfileFields()
 {
     include_once 'Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php';
     $this->user_fields = array_merge(array($this->settings->getUserAttribute()), array('dn'), $this->mapping->getFields(), ilLDAPRoleAssignmentRules::getAttributeNames());
 }
Пример #2
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());
     }
 }