You are here

public static function LdapAuthorizationConsumerConfAdmin::fields in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::fields()
  2. 7.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::fields()
2 calls to LdapAuthorizationConsumerConfAdmin::fields()
LdapAuthorizationConsumerConfAdmin::__construct in ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php
Constructor Method
ldap_authorization_schema in ldap_authorization/ldap_authorization.install
Implements hook_schema().

File

ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php, line 745

Class

LdapAuthorizationConsumerConfAdmin
LDAP Authorization Consumer Configration Admin Class

Code

public static function fields() {

  /**
   * consumer_type is tag (unique alphanumeric id) of consuming authorization such as
   *   drupal_roles, og_groups, civicrm_memberships
   */
  $fields = array(
    'numeric_consumer_conf_id' => array(
      'schema' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Primary ID field for the table.  Only used internally.',
        'no export' => TRUE,
      ),
    ),
    'sid' => array(
      'schema' => array(
        'type' => 'varchar',
        'length' => 20,
        'not null' => TRUE,
      ),
    ),
    'consumer_type' => array(
      'schema' => array(
        'type' => 'varchar',
        'length' => 20,
        'not null' => TRUE,
      ),
    ),
    'consumer_module' => array(
      'schema' => array(
        'type' => 'varchar',
        'length' => 30,
        'not null' => TRUE,
      ),
    ),
    'status' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'only_ldap_authenticated' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 1,
      ),
    ),
    'derive_from_dn' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_dn_attr' => array(
      'schema' => array(
        'type' => 'text',
        'default' => NULL,
      ),
    ),
    'derive_from_attr' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_attr_attr' => array(
      'schema' => array(
        'type' => 'text',
        'default' => NULL,
      ),
    ),
    'derive_from_attr_use_first_attr' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_attr_nested' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_entry' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_entry_nested' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_entry_entries' => array(
      'form_default' => array(),
      'schema' => array(
        'default' => NULL,
        'type' => 'text',
      ),
    ),
    'derive_from_entry_entries_attr' => array(
      'form_default' => 'dn',
      'schema' => array(
        'type' => 'varchar',
        'length' => 255,
        'default' => NULL,
      ),
    ),
    'derive_from_entry_attr' => array(
      'schema' => array(
        'type' => 'varchar',
        'length' => 255,
        'default' => NULL,
      ),
    ),
    'derive_from_entry_search_all' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_entry_use_first_attr' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'derive_from_entry_user_ldap_attr' => array(
      'schema' => array(
        'type' => 'varchar',
        'length' => 255,
        'default' => NULL,
      ),
    ),
    'mappings' => array(
      'form_default' => array(),
      'schema' => array(
        'type' => 'text',
        'not null' => FALSE,
        'default' => NULL,
      ),
    ),
    'use_filter' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 1,
      ),
    ),
    'synchronization_modes' => array(
      'form_default' => array(
        'user_logon',
      ),
    ),
    'synchronization_actions' => array(
      'form_default' => array(
        'revoke_ldap_provisioned',
        'create_consumers',
      ),
    ),
    'synch_to_ldap' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'synch_on_logon' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'revoke_ldap_provisioned' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'create_consumers' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'regrant_ldap_provisioned' => array(
      'schema' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
  );
  return $fields;
}