aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/templates/part.wizard-server.php
blob: 94bd59f7b96f0e95136d1bc9f0abdbbb48cccb95 (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php

/**
 * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2013-2017 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
?>
<fieldset id="ldapWizard1">
		<p>
		<select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
<?php
$i = 1;
$sel = ' selected';
foreach ($_['serverConfigurationPrefixes'] as $prefix) {
	?>
			<option value="<?php p($prefix); ?>"<?php p($sel);
	$sel = ''; ?>><?php p($l->t('%s. Server:', [$i++])); ?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
<?php
}
?>
		</select>
		<button type="button" id="ldap_action_add_configuration"
			aria-describedby="ldap_action_add_configuration_instructions"
			name="ldap_action_add_configuration" class="icon-add icon-default-style"
			title="<?php p($l->t('Add a new configuration'));?>">&nbsp;</button>
		<p class="hidden-visually" id="ldap_action_add_configuration_instructions">
			<?php p($l->t('Add a new configuration'));?>
		</p>
		<button type="button" id="ldap_action_copy_configuration"
			name="ldap_action_copy_configuration"
			aria-describedby="ldap_action_copy_configuration_instructions"
			class="ldapIconCopy icon-default-style"
			title="<?php p($l->t('Copy current configuration into new directory binding'));?>">&nbsp;</button>
		<p class="hidden-visually" id="ldap_action_copy_configuration_instructions">
			<?php p($l->t('Copy current configuration into new directory binding'));?>
		</p>
		<button type="button" id="ldap_action_delete_configuration"
			aria-describedby="ldap_action_delete_configuration_instructions"
			name="ldap_action_delete_configuration" class="icon-delete icon-default-style"
			title="<?php p($l->t('Delete the current configuration'));?>">&nbsp;</button>
		<p class="hidden-visually" id="ldap_action_delete_configuration_instructions">
			<?php p($l->t('Delete the current configuration'));?>
		</p>
		</p>

		<div class="hostPortCombinator">
			<div class="tablerow">
				<div class="tablecell">
					<div class="table">
						<input type="text" class="host" id="ldap_host"
							name="ldap_host"
							aria-describedby="ldap_host_instructions"
							placeholder="<?php p($l->t('Host'));?>"
							title="<?php p($l->t('You can omit the protocol, unless you require SSL. If so, start with ldaps://'));?>"
							/>
						<p class="hidden-visually" id="ldap_host_instructions">
							<?php p($l->t('You can omit the protocol, unless you require SSL. If so, start with ldaps://'));?>
						</p>
						<span class="hostPortCombinatorSpan">
							<input type="number" id="ldap_port" name="ldap_port"
								placeholder="<?php p($l->t('Port'));?>" />
							<button class="ldapDetectPort" name="ldapDetectPort" type="button">
								<?php p($l->t('Detect Port'));?>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="tablerow">&nbsp;</div>
			<div class="tablerow">
				<input type="text" id="ldap_dn" name="ldap_dn"
				class="tablecell"
				aria-describedby="ldap_dn_instructions"
				placeholder="<?php p($l->t('User DN'));?>" autocomplete="off"
				title="<?php p($l->t('The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.'));?>"
				/>
				<p class="hidden-visually" id="ldap_dn_instructions">
					<?php p($l->t('The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.'));?>
				</p>
			</div>

			<div class="tablerow">
				<input type="password" id="ldap_agent_password"
				class="tablecell" name="ldap_agent_password"
				aria-describedby="ldap_agent_password_instructions"
				placeholder="<?php p($l->t('Password'));?>" autocomplete="off"
				title="<?php p($l->t('For anonymous access, leave DN and Password empty.'));?>"
				/>
				<p class="hidden-visually" id="ldap_agent_password_instructions">
					<?php p($l->t('For anonymous access, leave DN and Password empty.'));?>
				</p>
				<button class="ldapSaveAgentCredentials" name="ldapSaveAgentCredentials" type="button">
					<?php p($l->t('Save Credentials'));?>
				</button>
			</div>
			<div class="tablerow">&nbsp;</div>

			<div class="tablerow">
				<textarea id="ldap_base" name="ldap_base"
					class="tablecell"
					aria-describedby="ldap_base_instructions"
					placeholder="<?php p($l->t('One Base DN per line'));?>"
					title="<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>">
				</textarea>
				<p class="hidden-visually" id="ldap_base_instructions">
					<?php p($l->t('You can specify Base DN for users and groups in the Advanced tab'));?>
				</p>
				<button class="ldapDetectBase" name="ldapDetectBase" type="button">
					<?php p($l->t('Detect Base DN'));?>
				</button>
				<button class="ldapTestBase" name="ldapTestBase" type="button">
					<?php p($l->t('Test Base DN'));?>
				</button>
			</div>

			<div class="tablerow left">
				<input type="checkbox" id="ldap_experienced_admin" value="1"
					name="ldap_experienced_admin" class="tablecell"
					aria-describedby="ldap_experienced_admin_instructions"
					title="<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>"
					/>
				<p class="hidden-visually" id="ldap_experienced_admin_instructions">
					<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>
				</p>
				<label for="ldap_experienced_admin" class="tablecell">
					<?php p($l->t('Manually enter LDAP filters (recommended for large directories)'));?>
				</label>
			</div>

			<div class="tablerow">
				<div class="tablecell ldapWizardInfo invisible">&nbsp;
				</div>
			</div>
		</div>
		<?php print_unescaped($_['wizardControls']); ?>
	</fieldset>