Welcome to mirror list, hosted at ThFree Co, Russian Federation.

part.wizard-loginfilter.php « templates « user_ldap « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7cbabb7aba808b99c1f4a1ff247c724de7b1c3b (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
<fieldset id="ldapWizard3">
	<div>
		<p>
			<?php p($l->t('When logging in, %s will find the user based on the following attributes:', [$theme->getName()]));?>
		</p>
		<p>
			<label for="ldap_loginfilter_username">
				<?php p($l->t('LDAP / AD Username:'));?>
			</label>

			<input type="checkbox" id="ldap_loginfilter_username"
				   title="<?php p($l->t('Allows login against the LDAP / AD username, which is either "uid" or "sAMAccountName" and will be detected.'));?>"
				   name="ldap_loginfilter_username" value="1" />
		</p>
		<p>
			<label for="ldap_loginfilter_email">
				<?php p($l->t('LDAP / AD Email Address:'));?>
			</label>

			<input type="checkbox" id="ldap_loginfilter_email"
				   title="<?php p($l->t('Allows login against an email attribute. "mail" and "mailPrimaryAddress" allowed.'));?>"
				   name="ldap_loginfilter_email" value="1" />
		</p>
		<p>
			<label for="ldap_loginfilter_attributes">
				<?php p($l->t('Other Attributes:'));?>
			</label>

			<select id="ldap_loginfilter_attributes" multiple="multiple"
			 name="ldap_loginfilter_attributes" class="multiSelectPlugin">
			</select>
		</p>
		<p>
			<label><a id='toggleRawLoginFilter' class='ldapToggle'>↓ <?php p($l->t('Edit LDAP Query'));?></a></label>
		</p>
		<p id="ldapReadOnlyLoginFilterContainer" class="hidden ldapReadOnlyFilterContainer">
			<label><?php p($l->t('LDAP Filter:'));?></label>
			<span class="ldapFilterReadOnlyElement ldapInputColElement"></span>
		</p>
		<p id="rawLoginFilterContainer" class="invisible">
			<textarea type="text" id="ldap_login_filter" name="ldap_login_filter"
				class="ldapFilterInputElement"
				placeholder="<?php p($l->t('Edit LDAP Query'));?>"
				title="<?php p($l->t('Defines the filter to apply, when login is attempted. "%%uid" replaces the username in the login action. Example: "uid=%%uid"'));?>">
			</textarea>
		</p>
		<p>
			<div class="ldapWizardInfo invisible">&nbsp;</div>
		</p>
		<p class="ldap_verify">
			<input type="text" id="ldap_test_loginname" name="ldap_test_loginname"
				   placeholder="<?php p($l->t('Test Loginname'));?>"
				   class="ldapVerifyInput"
				   title="Attempts to receive a DN for the given loginname and the current login filter"/>
			<button class="ldapVerifyLoginName" name="ldapTestLoginSettings" type="button" disabled="disabled">
				<?php p($l->t('Verify settings'));?>
			</button>
		</p>
		<?php print_unescaped($_['wizardControls']); ?>
	</div>
</fieldset>