drupal_distributed_authentication_settings

Versions
5
drupal_distributed_authentication_settings()

Code

modules/drupal/drupal.module, line 108

<?php
function drupal_distributed_authentication_settings() {

  $options = array('1' => t('Enabled'), '0' => t('Disabled'));

  $form['drupal_authentication_service'] = array(
    '#type' => 'radios',
    '#title' => t('Authentication service'),
    '#default_value' => variable_get('drupal_authentication_service', 0),
    '#options' => $options,
    '#description' => t('If enabled, your Drupal site will accept logins with the user names of other Drupal sites, and likewise provide authentication for users logging into other Drupal sites, based on their user accounts here.')
  );

  $form['drupal_default_da_server'] =  array(
    '#type' => 'textfield',
    '#title' => t('Default authentication server'),
    '#default_value' => variable_get('drupal_default_da_server', ''),
    '#description' => t('The URL of the default Drupal authentication server. Omit the %http prefix (e.g. drupal.org, www.example.com, etc.). If the authentication service has been enabled, users registered at the server specified here, will not need to append the server to their user name when logging into your site. This enables users to provide a briefer, more familiar username in the login form.', array('%http' => 'http'))
  );

  $form['drupal_default_da_server_only'] = array(
    '#type' => 'radios',
    '#title' => t('Only allow authentication from default server'),
    '#default_value' => variable_get('drupal_default_da_server_only', 0),
    '#options' => $options,
    '#description' => t("Only accept remote logins from the above specified default authentication server and not from any other server. Useful when an external system is the solitary authority on user accounts for this site. A common usage is to enable this setting and also enable an authentication module which talks to your company's directory server.")
  );

  return system_settings_form($form);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.