1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
32700c57
|
Assos Assos
|
/**
|
8 |
|
|
*
|
9 |
|
|
*/
|
10 |
85ad3d82
|
Assos Assos
|
function ldap_test_ldap_authentication_data() {
|
11 |
|
|
|
12 |
32700c57
|
Assos Assos
|
$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 |
85ad3d82
|
Assos Assos
|
|
28 |
|
|
$conf['MixedModeUserLogon'] = $conf['default'];
|
29 |
|
|
|
30 |
|
|
$conf['MixedModeUserLogon3'] = $conf['default'];
|
31 |
32700c57
|
Assos Assos
|
$conf['MixedModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
|
32 |
85ad3d82
|
Assos Assos
|
|
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 |
32700c57
|
Assos Assos
|
// -- 0, 3600, 86400, 604800, 2592000, 31536000, 315360000.
|
41 |
|
|
$conf['SSOUserLogon']['cookieExpire'] = 3600;
|
42 |
|
|
// 'mod_auth_kerb'.
|
43 |
|
|
$conf['SSOUserLogon']['ldapImplementation'] = 'mod_auth_sspi';
|
44 |
85ad3d82
|
Assos Assos
|
|
45 |
|
|
$conf['ExclusiveModeUserLogon3'] = $conf['default'];
|
46 |
32700c57
|
Assos Assos
|
$conf['ExclusiveModeUserLogon3']['sids'] = ['activedirectory1' => 'activedirectory1'];
|
47 |
85ad3d82
|
Assos Assos
|
$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 |
32700c57
|
Assos Assos
|
$conf['WL3']['sids'] = ['activedirectory1' => 'activedirectory1'];
|
54 |
85ad3d82
|
Assos Assos
|
$conf['WL3']['authenticationMode'] = LDAP_AUTHENTICATION_EXCLUSIVE;
|
55 |
|
|
|
56 |
32700c57
|
Assos Assos
|
// Single sign on tests.
|
57 |
85ad3d82
|
Assos Assos
|
$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 |
|
|
} |