Projet

Général

Profil

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

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

1
<?php
2

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

    
8
function ldap_test_ldap_authentication_data() {
9

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

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

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

    
31
  $conf['ExclusiveModeUserLogon'] = $conf['default'];
32
  $conf['ExclusiveModeUserLogon']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
33

    
34
  $conf['SSOUserLogon'] = $conf['default'];
35
  $conf['SSOUserLogon']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
36
  $conf['SSOUserLogon']['ssoEnabled'] = TRUE;
37
  $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

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

    
45

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

    
49

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

    
54

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

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

    
68
  return $conf;
69

    
70
}