function ldap_sso_form in LDAP Single Sign On 6
1 string reference to 'ldap_sso_form'
- ldap_sso_admin in ./
ldap_sso.module - Menu callback; present an administrative comment listing.
File
- ./
ldap_sso.module, line 85
Code
function ldap_sso_form($form_state) {
$period = array(
0 => t('Immediately'),
) + drupal_map_assoc(array(
3600,
86400,
604800,
2592000,
31536000,
315360000,
), 'format_interval') + array(
-1 => t('Never'),
);
$form['ldap_sso_seamless_login'] = array(
'#type' => 'checkbox',
'#title' => t('Turn on automated single sign-on'),
'#description' => t('This requires that you ' . 'have operational NTLM authentication turned on for at least
the path user/login/sso, or for the whole domain.'),
'#default_value' => variable_get('ldap_sso_seamless_login', 0),
);
$form['ldap_sso_cookie_expire'] = array(
'#type' => 'select',
'#title' => t('Cookie Lifetime'),
'#description' => t('If using the seamless login, a cookie is necessary to prevent automatic login after a user manually logs out. Select the lifetime of the cookie.'),
'#default_value' => variable_get('ldap_sso_cookie_expire', 315360000),
'#options' => $period,
);
$form['ldap_sso_ldap_implementation'] = array(
'#type' => 'select',
'#title' => t('Authentication Mechanism'),
'#description' => t('Select the type of authentication mechanism you are using.'),
'#default_value' => variable_get('ldap_sso_ldap_implementation', 'mod_auth_sspi'),
'#options' => array(
'mod_auth_sspi' => t('mod_auth_sspi'),
),
);
return system_settings_form($form);
}