Merge pull request #8447 from steelcg/dev

feat: add LDAP_ATTRIBUTE_FOR_MAIL to env-configuration
This commit is contained in:
Timothy Jaeryang Baek
2025-01-12 18:15:28 -08:00
committed by GitHub
53 changed files with 190 additions and 2 deletions

View File

@@ -28,6 +28,7 @@
label: '',
host: '',
port: '',
attribute_for_mail: 'mail',
attribute_for_username: 'uid',
app_dn: '',
app_dn_password: '',
@@ -342,6 +343,26 @@
/>
</div>
</div>
<div class="flex w-full gap-2">
<div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1">
{$i18n.t('Attribute for Mail')}
</div>
<Tooltip
content={$i18n.t(
'The LDAP attribute that maps to the mail that users use to sign in.'
)}
placement="top-start"
>
<input
class="w-full bg-transparent outline-none py-0.5"
required
placeholder={$i18n.t('Example: mail')}
bind:value={LDAP_SERVER.attribute_for_mail}
/>
</Tooltip>
</div>
</div>
<div class="flex w-full gap-2">
<div class="w-full">
<div class=" self-center text-xs font-medium min-w-fit mb-1">