You are here

function ldap_authorization_og_ldap_authorization_consumer in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authorization/ldap_authorization_og/ldap_authorization_og.module \ldap_authorization_og_ldap_authorization_consumer()
  2. 7.2 ldap_authorization/ldap_authorization_og/ldap_authorization_og.module \ldap_authorization_og_ldap_authorization_consumer()

Implements hook_ldap_authorization_consumer().

1 call to ldap_authorization_og_ldap_authorization_consumer()
LdapAuthorizationConsumerOG::__construct in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php
Constructor Method

File

ldap_authorization/ldap_authorization_og/ldap_authorization_og.module, line 17
controls organic group membership based on LDAP values

Code

function ldap_authorization_og_ldap_authorization_consumer() {
  $types['og_group'] = array(
    'consumer_name' => t('OG group'),
    'consumer_name_plural' => t('OG groups'),
    'consumer_short_name' => t('group'),
    'consumer_short_name_plural' => t('groups'),
    'consumer_description' => t('An OG group.'),
    'consumer_class_name' => 'LdapAuthorizationConsumerOG',
    'consumer_class_file' => 'LdapAuthorizationConsumerOG.class.php',
    'consumer_module' => 'ldap_authorization_og',
    'consumer_mapping_directions' => 'Mappings should be of form:<br/>
      <code>[raw authorization id]|[og group match field]=[og group match id],[og role match field]=[og role match id]</code>
      <br/>such as:<br/>
      <code>
      Campus Accounts|group-name=knitters,role-name=administrator member<br/>
      ou=Underlings,dc=myorg,dc=mytld,dc=edu|gid=7,rid=28<br/>
      ou=IT,dc=myorg,dc=mytld,dc=edu|node.field_state_id=IL,role-name=administrator member<br/>
      </code>',
  );
  return $types;
}