@@ -3,47 +3,47 @@ discard block |
||
3 | 3 | style('user_ldap', 'vendor/ui-multiselect/jquery.multiselect'); |
4 | 4 | |
5 | 5 | script('user_ldap', [ |
6 | - 'vendor/ui-multiselect/src/jquery.multiselect', |
|
7 | - 'wizard/controller', |
|
8 | - 'wizard/configModel', |
|
9 | - 'wizard/view', |
|
10 | - 'wizard/wizardObject', |
|
11 | - 'wizard/wizardTabGeneric', |
|
12 | - 'wizard/wizardTabElementary', |
|
13 | - 'wizard/wizardTabAbstractFilter', |
|
14 | - 'wizard/wizardTabUserFilter', |
|
15 | - 'wizard/wizardTabLoginFilter', |
|
16 | - 'wizard/wizardTabGroupFilter', |
|
17 | - 'wizard/wizardTabAdvanced', |
|
18 | - 'wizard/wizardTabExpert', |
|
19 | - 'wizard/wizardDetectorQueue', |
|
20 | - 'wizard/wizardDetectorGeneric', |
|
21 | - 'wizard/wizardDetectorPort', |
|
22 | - 'wizard/wizardDetectorBaseDN', |
|
23 | - 'wizard/wizardDetectorFeatureAbstract', |
|
24 | - 'wizard/wizardDetectorUserObjectClasses', |
|
25 | - 'wizard/wizardDetectorGroupObjectClasses', |
|
26 | - 'wizard/wizardDetectorGroupsForUsers', |
|
27 | - 'wizard/wizardDetectorGroupsForGroups', |
|
28 | - 'wizard/wizardDetectorSimpleRequestAbstract', |
|
29 | - 'wizard/wizardDetectorFilterUser', |
|
30 | - 'wizard/wizardDetectorFilterLogin', |
|
31 | - 'wizard/wizardDetectorFilterGroup', |
|
32 | - 'wizard/wizardDetectorUserCount', |
|
33 | - 'wizard/wizardDetectorGroupCount', |
|
34 | - 'wizard/wizardDetectorEmailAttribute', |
|
35 | - 'wizard/wizardDetectorUserDisplayNameAttribute', |
|
36 | - 'wizard/wizardDetectorUserGroupAssociation', |
|
37 | - 'wizard/wizardDetectorAvailableAttributes', |
|
38 | - 'wizard/wizardDetectorTestAbstract', |
|
39 | - 'wizard/wizardDetectorTestLoginName', |
|
40 | - 'wizard/wizardDetectorTestBaseDN', |
|
41 | - 'wizard/wizardDetectorTestConfiguration', |
|
42 | - 'wizard/wizardDetectorClearUserMappings', |
|
43 | - 'wizard/wizardDetectorClearGroupMappings', |
|
44 | - 'wizard/wizardFilterOnType', |
|
45 | - 'wizard/wizardFilterOnTypeFactory', |
|
46 | - 'wizard/wizard' |
|
6 | + 'vendor/ui-multiselect/src/jquery.multiselect', |
|
7 | + 'wizard/controller', |
|
8 | + 'wizard/configModel', |
|
9 | + 'wizard/view', |
|
10 | + 'wizard/wizardObject', |
|
11 | + 'wizard/wizardTabGeneric', |
|
12 | + 'wizard/wizardTabElementary', |
|
13 | + 'wizard/wizardTabAbstractFilter', |
|
14 | + 'wizard/wizardTabUserFilter', |
|
15 | + 'wizard/wizardTabLoginFilter', |
|
16 | + 'wizard/wizardTabGroupFilter', |
|
17 | + 'wizard/wizardTabAdvanced', |
|
18 | + 'wizard/wizardTabExpert', |
|
19 | + 'wizard/wizardDetectorQueue', |
|
20 | + 'wizard/wizardDetectorGeneric', |
|
21 | + 'wizard/wizardDetectorPort', |
|
22 | + 'wizard/wizardDetectorBaseDN', |
|
23 | + 'wizard/wizardDetectorFeatureAbstract', |
|
24 | + 'wizard/wizardDetectorUserObjectClasses', |
|
25 | + 'wizard/wizardDetectorGroupObjectClasses', |
|
26 | + 'wizard/wizardDetectorGroupsForUsers', |
|
27 | + 'wizard/wizardDetectorGroupsForGroups', |
|
28 | + 'wizard/wizardDetectorSimpleRequestAbstract', |
|
29 | + 'wizard/wizardDetectorFilterUser', |
|
30 | + 'wizard/wizardDetectorFilterLogin', |
|
31 | + 'wizard/wizardDetectorFilterGroup', |
|
32 | + 'wizard/wizardDetectorUserCount', |
|
33 | + 'wizard/wizardDetectorGroupCount', |
|
34 | + 'wizard/wizardDetectorEmailAttribute', |
|
35 | + 'wizard/wizardDetectorUserDisplayNameAttribute', |
|
36 | + 'wizard/wizardDetectorUserGroupAssociation', |
|
37 | + 'wizard/wizardDetectorAvailableAttributes', |
|
38 | + 'wizard/wizardDetectorTestAbstract', |
|
39 | + 'wizard/wizardDetectorTestLoginName', |
|
40 | + 'wizard/wizardDetectorTestBaseDN', |
|
41 | + 'wizard/wizardDetectorTestConfiguration', |
|
42 | + 'wizard/wizardDetectorClearUserMappings', |
|
43 | + 'wizard/wizardDetectorClearGroupMappings', |
|
44 | + 'wizard/wizardFilterOnType', |
|
45 | + 'wizard/wizardFilterOnTypeFactory', |
|
46 | + 'wizard/wizard' |
|
47 | 47 | ]); |
48 | 48 | |
49 | 49 | style('user_ldap', 'settings'); |
@@ -66,10 +66,10 @@ discard block |
||
66 | 66 | <li class="ldapSettingsTabs"><a href="#ldapSettings-1"><?php p($l->t('Advanced'));?></a></li> |
67 | 67 | </ul> |
68 | 68 | <?php |
69 | - if (!function_exists('ldap_connect')) { |
|
70 | - print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>'); |
|
71 | - } |
|
72 | - ?> |
|
69 | + if (!function_exists('ldap_connect')) { |
|
70 | + print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>'); |
|
71 | + } |
|
72 | + ?> |
|
73 | 73 | <?php require_once __DIR__ . '/part.wizard-server.php'; ?> |
74 | 74 | <?php require_once __DIR__ . '/part.wizard-userfilter.php'; ?> |
75 | 75 | <?php require_once __DIR__ . '/part.wizard-loginfilter.php'; ?> |
@@ -95,16 +95,16 @@ discard block |
||
95 | 95 | <p><label for="ldap_base_groups"><?php p($l->t('Base Group Tree'));?></label><textarea id="ldap_base_groups" name="ldap_base_groups" placeholder="<?php p($l->t('One Group Base DN per line'));?>" data-default="<?php p($_['ldap_base_groups_default']); ?>" title="<?php p($l->t('Base Group Tree'));?>"></textarea></p> |
96 | 96 | <p><label for="ldap_attributes_for_group_search"><?php p($l->t('Group Search Attributes'));?></label><textarea id="ldap_attributes_for_group_search" name="ldap_attributes_for_group_search" placeholder="<?php p($l->t('Optional; one attribute per line'));?>" data-default="<?php p($_['ldap_attributes_for_group_search_default']); ?>" title="<?php p($l->t('Group Search Attributes'));?>"></textarea></p> |
97 | 97 | <p><label for="ldap_group_member_assoc_attribute"><?php p($l->t('Group-Member association'));?></label><select id="ldap_group_member_assoc_attribute" name="ldap_group_member_assoc_attribute" data-default="<?php p($_['ldap_group_member_assoc_attribute_default']); ?>" ><option value="uniqueMember"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'uniqueMember')) { |
98 | - p(' selected'); |
|
99 | - } ?>>uniqueMember</option><option value="memberUid"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'memberUid')) { |
|
100 | - p(' selected'); |
|
101 | - } ?>>memberUid</option><option value="member"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'member')) { |
|
102 | - p(' selected'); |
|
103 | - } ?>>member (AD)</option><option value="gidNumber"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'gidNumber')) { |
|
104 | - p(' selected'); |
|
105 | - } ?>>gidNumber</option><option value="zimbraMailForwardingAddress"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'zimbraMailForwardingAddress')) { |
|
106 | - p(' selected'); |
|
107 | - } ?>>zimbraMailForwardingAddress</option></select></p> |
|
98 | + p(' selected'); |
|
99 | + } ?>>uniqueMember</option><option value="memberUid"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'memberUid')) { |
|
100 | + p(' selected'); |
|
101 | + } ?>>memberUid</option><option value="member"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'member')) { |
|
102 | + p(' selected'); |
|
103 | + } ?>>member (AD)</option><option value="gidNumber"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'gidNumber')) { |
|
104 | + p(' selected'); |
|
105 | + } ?>>gidNumber</option><option value="zimbraMailForwardingAddress"<?php if (isset($_['ldap_group_member_assoc_attribute']) && ($_['ldap_group_member_assoc_attribute'] === 'zimbraMailForwardingAddress')) { |
|
106 | + p(' selected'); |
|
107 | + } ?>>zimbraMailForwardingAddress</option></select></p> |
|
108 | 108 | <p><label for="ldap_dynamic_group_member_url"><?php p($l->t('Dynamic Group Member URL'));?></label><input type="text" id="ldap_dynamic_group_member_url" name="ldap_dynamic_group_member_url" title="<?php p($l->t('The LDAP attribute that on group objects contains an LDAP search URL that determines what objects belong to the group. (An empty setting disables dynamic group membership functionality.)'));?>" data-default="<?php p($_['ldap_dynamic_group_member_url_default']); ?>" /></p> |
109 | 109 | <p><label for="ldap_nested_groups"><?php p($l->t('Nested Groups'));?></label><input type="checkbox" id="ldap_nested_groups" name="ldap_nested_groups" value="1" data-default="<?php p($_['ldap_nested_groups_default']); ?>" title="<?php p($l->t('When switched on, groups that contain groups are supported. (Only works if the group member attribute contains DNs.)'));?>" /></p> |
110 | 110 | <p><label for="ldap_paging_size"><?php p($l->t('Paging chunksize'));?></label><input type="number" id="ldap_paging_size" name="ldap_paging_size" title="<?php p($l->t('Chunksize used for paged LDAP searches that may return bulky results like user or group enumeration. (Setting it 0 disables paged LDAP searches in those situations.)'));?>" data-default="<?php p($_['ldap_paging_size_default']); ?>" /></p> |