Skip to content

Commit ea54f68

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 ea54f68

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
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+
18+
<NcCheckboxRadioSwitch
19+
:model-value="ldapConfigProxy.ldapLoginFilterEmail === '1'"
20+
:description="t('user_ldap', 'Allows login against an email attribute. \'mail\' and \'mailPrimaryAddress\' allowed.')"
21+
@update:model-value="ldapConfigProxy.ldapLoginFilterEmail = $event ? '1' : '0'">
22+
{{ t('user_ldap', 'LDAP/AD Email Address:') }}
23+
</NcCheckboxRadioSwitch>
24+
1125
<div class="ldap-wizard__login__line ldap-wizard__login__login-attributes">
1226
<NcSelect
1327
v-model="ldapLoginFilterAttributes"

0 commit comments

Comments
 (0)