public function getLdapUserRequiredAttributes($direction = LDAP_USER_PROV_DIRECTION_ALL, $ldap_context = NULL) {

    $attributes_map = array();
    $required_attributes = array();
    if ($this->drupalAcctProvisionServer) {
      $prov_events = $this->ldapContextToProvEvents($ldap_context);
      $attributes_map = $this->getSynchMappings($direction, $prov_events);
      $required_attributes = array();
      foreach ($attributes_map as $detail) {
        if (count(array_intersect($prov_events, $detail['prov_events']))) {
          // Add the attribute to our array.
          if ($detail['ldap_attr']) {
            ldap_servers_token_extract_attributes($required_attributes,  $detail['ldap_attr']);
          }
        }
      }
    }
    return $required_attributes;
  }
public function getLdapUserRequiredAttributes($direction = LDAP_USER_PROV_DIRECTION_ALL, $ldap_context = NULL) {

    $attributes_map = array();
    $required_attributes = array();
    if ($this->drupalAcctProvisionServer) {
      $prov_events = $this->ldapContextToProvEvents($ldap_context);
      $attributes_map = $this->getSynchMappings($direction, $prov_events);
      $required_attributes = array();
      foreach ($attributes_map as $detail) {
        if (count(array_intersect($prov_events, $detail['prov_events']))) {
          // Add the attribute to our array.
          if ($detail['ldap_attr']) {
            ldap_servers_token_extract_attributes($required_attributes,  $detail['ldap_attr']);
          }
        }
      }
    }
    return $required_attributes;
  }
public function getLdapUserRequiredAttributes ( $ direction = LDAP_USER_PROV_DIRECTION_ALL , $ ldap_context = NULL ) { $ attributes_map = array ( ) ; $ required_attributes = array ( ) ; if ( $ this -> drupalAcctProvisionServer ) { $ prov_events = $ this -> ldapContextToProvEvents ( $ ldap_context ) ; $ attributes_map = $ this -> getSynchMappings ( $ direction , $ prov_events ) ; $ required_attributes = array ( ) ; foreach ( $ attributes_map as $ detail ) { if ( count ( array_intersect ( $ prov_events , $ detail [ 'prov_events' ] ) ) ) { // Add the attribute to our array. if ( $ detail [ 'ldap_attr' ] ) { ldap_servers_token_extract_attributes ( $ required_attributes , $ detail [ 'ldap_attr' ] ) ; } } } } return $ required_attributes ; }
Util to fetch attributes required for this user conf, not other modules.

@param enum $direction LDAP_USER_PROV_DIRECTION_* constants
@param string $ldap_context
Util to fetch attributes required for this user conf not other modules .