Projet

Général

Profil

Révision 32700c57

Ajouté par Assos Assos il y a environ 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_test/ldap_authentication.conf.inc
2 2

  
3 3
/**
4 4
 * @file
5
 *
6 5
 */
7 6

  
7
/**
8
 *
9
 */
8 10
function ldap_test_ldap_authentication_data() {
9 11

  
10
  $conf['default'] = array(
11
      'sids' => array('activedirectory1' => 'activedirectory1'),
12
      'authenticationMode' => LDAP_AUTHENTICATION_MIXED,
13
      'emailOption' => LDAP_AUTHENTICATION_EMAIL_FIELD_DISABLE,
14
      'emailUpdate' => LDAP_AUTHENTICATION_EMAIL_UPDATE_ON_LDAP_CHANGE_DISABLE,
15
      'loginUIUsernameTxt' => 'Hogwarts Username',
16
      'loginUIPasswordTxt' => 'Hogwards LDAP Password',
17
      'ldapUserHelpLinkUrl' => 'https://passwords.hogwarts.edu/',
18
      'ldapUserHelpLinkText' => 'Hogwarts IT Password Support Page',
19
      'allowOnlyIfTextInDn' => NULL,
20
      'excludeIfTextInDn' => NULL,
21
      'allowTestPhp' => NULL,
22
      'excludeIfNoAuthorizations' => LDAP_AUTHENTICATION_EXCL_IF_NO_AUTHZ_DEFAULT,
23
      'ssoEnabled' => FALSE,
24
    );
12
  $conf['default'] = [
13
    'sids' => ['activedirectory1' => 'activedirectory1'],
14
    'authenticationMode' => LDAP_AUTHENTICATION_MIXED,
15
    'emailOption' => LDAP_AUTHENTICATION_EMAIL_FIELD_DISABLE,
16
    'emailUpdate' => LDAP_AUTHENTICATION_EMAIL_UPDATE_ON_LDAP_CHANGE_DISABLE,
17
    'loginUIUsernameTxt' => 'Hogwarts Username',
18
    'loginUIPasswordTxt' => 'Hogwards LDAP Password',
19
    'ldapUserHelpLinkUrl' => 'https://passwords.hogwarts.edu/',
20
    'ldapUserHelpLinkText' => 'Hogwarts IT Password Support Page',
21
    'allowOnlyIfTextInDn' => NULL,
22
    'excludeIfTextInDn' => NULL,
23
    'allowTestPhp' => NULL,
24
    'excludeIfNoAuthorizations' => LDAP_AUTHENTICATION_EXCL_IF_NO_AUTHZ_DEFAULT,
25
    'ssoEnabled' => FALSE,
26
  ];
25 27

  
26 28
  $conf['MixedModeUserLogon'] = $conf['default'];
27 29

  
28 30
  $conf['MixedModeUserLogon3'] = $conf['default'];
29
  $conf['MixedModeUserLogon3']['sids'] = array('activedirectory1' => 'activedirectory1');
31
  $conf['MixedModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
30 32

  
31 33
  $conf['ExclusiveModeUserLogon'] = $conf['default'];
32 34
  $conf['ExclusiveModeUserLogon']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
......
35 37
  $conf['SSOUserLogon']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
36 38
  $conf['SSOUserLogon']['ssoEnabled'] = TRUE;
37 39
  $conf['SSOUserLogon']['ssoRemoteUserStripDomainName'] = FALSE;
38
  $conf['SSOUserLogon']['cookieExpire'] = 3600; // -- 0, 3600, 86400, 604800, 2592000, 31536000, 315360000
39
  $conf['SSOUserLogon']['ldapImplementation'] = 'mod_auth_sspi'; //  'mod_auth_kerb'
40
  // -- 0, 3600, 86400, 604800, 2592000, 31536000, 315360000.
41
  $conf['SSOUserLogon']['cookieExpire'] = 3600;
42
  // 'mod_auth_kerb'.
43
  $conf['SSOUserLogon']['ldapImplementation'] = 'mod_auth_sspi';
40 44

  
41 45
  $conf['ExclusiveModeUserLogon3'] = $conf['default'];
42
  $conf['ExclusiveModeUserLogon3']['sids'] = array('activedirectory1' => 'activedirectory1');
46
  $conf['ExclusiveModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
43 47
  $conf['ExclusiveModeUserLogon3']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
44 48

  
45

  
46 49
  $conf['WL1'] = $conf['default'];
47 50
  $conf['WL1']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
48 51

  
49

  
50 52
  $conf['WL3'] = $conf['default'];
51
  $conf['WL3']['sids'] = array('activedirectory1' => 'activedirectory1');
53
  $conf['WL3']['sids'] = ['activedirectory1' => 'activedirectory1'];
52 54
  $conf['WL3']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
53 55

  
54

  
55
  // single sign on tests
56
  // Single sign on tests.
56 57
  $conf['MixedModeUserLogonSSO'] = $conf['MixedModeUserLogon'];
57 58
  $conf['MixedModeUserLogonSSO']['ssoRemoteUserStripDomainName'] = FALSE;
58 59
  $conf['MixedModeUserLogonSSO']['seamlessLogin'] = TRUE;

Formats disponibles : Unified diff