-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathos2web_ad_integration.strongarm.inc
79 lines (73 loc) · 2.33 KB
/
os2web_ad_integration.strongarm.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* @file
* os2web_ad_integration.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function os2web_ad_integration_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'ldap_authentication_conf';
$strongarm->value = array(
'sids' => array(
'ldap_example' => 'ldap_example',
),
'authenticationMode' => 1,
'loginConflictResolve' => 2,
'acctCreation' => 4,
'loginUIUsernameTxt' => NULL,
'loginUIPasswordTxt' => NULL,
'ldapUserHelpLinkUrl' => NULL,
'ldapUserHelpLinkText' => 'Logon Help',
'emailOption' => 3,
'emailUpdate' => 1,
'allowOnlyIfTextInDn' => array(),
'excludeIfTextInDn' => array(),
'allowTestPhp' => '',
'excludeIfNoAuthorizations' => NULL,
'ssoRemoteUserStripDomainName' => NULL,
'seamlessLogin' => NULL,
'ldapImplementation' => 'mod_auth_sspi',
'cookieExpire' => NULL,
);
$export['ldap_authentication_conf'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'ldap_profile_conf';
$strongarm->value = array(
'ldap_fields' => array(
0 => 'samaccountname',
1 => 'mail',
),
'mapping' => array(
'username' => 'samaccountname',
'mail' => 'mail',
'field_navn_stilling' => 'name',
),
'derivedMapping' => array(
'field_navn_stilling' => array(
'derive' => FALSE,
'derive_value' => '',
),
),
);
$export['ldap_profile_conf'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'ldap_servers_encryption';
$strongarm->value = 10;
$export['ldap_servers_encryption'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'ldap_servers_require_ssl_for_credentails';
$strongarm->value = 0;
$export['ldap_servers_require_ssl_for_credentails'] = $strongarm;
return $export;
}