Project

General

Profile

Revision b42754b9

Added by Assos Assos almost 7 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/ldap/ldap_servers/ldap_servers.settings.inc
13 13
    drupal_set_message(t('PHP LDAP Extension is not loaded.'), "warning");
14 14
  }
15 15

  
16
  $https_approaches = array();
17
  $https_approaches[] = t('Use secure pages or secure login module to redirect to SSL (https)');
18
  $https_approaches[] = t('Run entire site with SSL (https)');
19
  $https_approaches[] = t('Remove logon block and redirect all /user page to https via webserver redirect');
20

  
21 16
  $form['#title'] = "Configure LDAP Preferences";
22
  $form['ssl'] = array('#type' => 'fieldset', '#title' => t('Require HTTPS on Credential Pages'));
23
  $form['ssl']['ldap_servers_require_ssl_for_credentials'] = array(
24
    '#type' => 'checkbox',
25
    '#title' => t('If checked, modules using LDAP will not allow credentials to
26
      be entered on or submitted to HTTP pages, only HTTPS. This option should be used with an
27
      approach to get all logon forms to be https, such as:') .
28
      theme('item_list', array('items' => $https_approaches)),
29
    '#default_value' => variable_get('ldap_servers_require_ssl_for_credentials', 0),
30
  );
17

  
31 18

  
32 19
  $options = ldap_servers_encrypt_types('encrypt');
33 20

  

Also available in: Unified diff