Skip to content

Commit cdabf91

Browse files
committed
fix(user_ldap): Re-introduce easy login attributes checkboxes
Fix #55805 Signed-off-by: Louis Chmn <[email protected]>
1 parent 484a49b commit cdabf91

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

apps/user_ldap/src/components/SettingsTabs/LoginTab.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@
88
{{ t('user_ldap', 'When logging in, {instanceName} will find the user based on the following attributes:', { instanceName }) }}
99
</legend>
1010

11+
<NcCheckboxRadioSwitch
12+
:model-value="ldapConfigProxy.ldapLoginFilterUsername === '1'"
13+
:description="t('user_ldap', 'Allows login against the LDAP/AD username, which is either \"uid\" or \"sAMAccountName\" and will be detected.')"
14+
@update:model-value="ldapConfigProxy.ldapLoginFilterUsername = $event ? '1' : '0'">
15+
{{ t('user_ldap', 'LDAP/AD Username:') }}
16+
</NcCheckboxRadioSwitch>
17+
<!-- value="1" /> -->
18+
19+
<NcCheckboxRadioSwitch
20+
:model-value="ldapConfigProxy.ldapLoginFilterEmail === '1'"
21+
:description="t('user_ldap', 'Allows login against an email attribute. \"mail\" and \"mailPrimaryAddress\" allowed.')"
22+
@update:model-value="ldapConfigProxy.ldapLoginFilterEmail = $event ? '1' : '0'">
23+
{{ t('user_ldap', 'LDAP/AD Email Address:') }}
24+
</NcCheckboxRadioSwitch>
25+
<!-- value="1" /> -->
26+
1127
<div class="ldap-wizard__login__line ldap-wizard__login__login-attributes">
1228
<NcSelect
1329
v-model="ldapLoginFilterAttributes"

0 commit comments

Comments
 (0)