function _ldap_servers_fields in Lightweight Directory Access Protocol (LDAP) 7
1 call to _ldap_servers_fields()
- ldap_servers_fields in ldap_servers/
ldap_servers.module
File
- ldap_servers/
ldap_servers.inc, line 94 - collection of functions that don't belong in server object
Code
function _ldap_servers_fields() {
$fields = array(
'sid' => array(
'schema' => array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
),
),
'name' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'status' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
),
'type' => array(
'schema' => array(
'type' => 'varchar',
'length' => 20,
'not null' => FALSE,
),
),
'address' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'port' => array(
'schema' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 389,
),
),
'tls' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'basedn' => array(
'schema' => array(
'type' => 'text',
),
),
'binddn' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
),
),
'bindpw' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
),
),
'user_attr' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'user_attr' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'mail_attr' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'ldap_to_drupal_user' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'testing_drupal_username' => array(
'schema' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'weight' => array(
'schema' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
);
return $fields;
}