You are here

function drupal_distributed_authentication_settings in Drupal 5

1 string reference to 'drupal_distributed_authentication_settings'
drupal_menu in modules/drupal/drupal.module
Implementation of hook_menu().

File

modules/drupal/drupal.module, line 108
Lets users log in using a Drupal ID and can notify a central server about your site.

Code

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);
}