Projet

Général

Profil

Paste
Télécharger (2,75 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_test / ldap_authentication.conf.inc @ 32700c57

1
<?php
2

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

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

    
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
  ];
27

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

    
30
  $conf['MixedModeUserLogon3'] = $conf['default'];
31
  $conf['MixedModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
32

    
33
  $conf['ExclusiveModeUserLogon'] = $conf['default'];
34
  $conf['ExclusiveModeUserLogon']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
35

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

    
45
  $conf['ExclusiveModeUserLogon3'] = $conf['default'];
46
  $conf['ExclusiveModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
47
  $conf['ExclusiveModeUserLogon3']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
48

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

    
52
  $conf['WL3'] = $conf['default'];
53
  $conf['WL3']['sids'] = ['activedirectory1' => 'activedirectory1'];
54
  $conf['WL3']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
55

    
56
  // Single sign on tests.
57
  $conf['MixedModeUserLogonSSO'] = $conf['MixedModeUserLogon'];
58
  $conf['MixedModeUserLogonSSO']['ssoRemoteUserStripDomainName'] = FALSE;
59
  $conf['MixedModeUserLogonSSO']['seamlessLogin'] = TRUE;
60
  $conf['MixedModeUserLogonSSO']['ldapImplementation'] = 'mod_auth_sspi';
61
  $conf['MixedModeUserLogonSSO']['cookieExpire'] = 3600;
62

    
63
  $conf['ExclusiveModeUserLogonSSO'] = $conf['ExclusiveModeUserLogon'];
64
  $conf['ExclusiveModeUserLogonSSO']['ssoRemoteUserStripDomainName'] = FALSE;
65
  $conf['ExclusiveModeUserLogonSSO']['seamlessLogin'] = FALSE;
66
  $conf['ExclusiveModeUserLogonSSO']['ldapImplementation'] = 'mod_auth_sspi';
67
  $conf['ExclusiveModeUserLogonSSO']['cookieExpire'] = 3600;
68

    
69
  return $conf;
70

    
71
}