fix #7649: ui: active directory realm: expose user attribute name option

AD realms support the 'user_attr' option, which sets the attribute used
as username when syncing users, but it can only be set via the CLI. It
is needed for logging in with the user principal name, if that does not
end with the AD domain: with 'userPrincipalName' as attribute, the users
are synced with their full user principal name, which is then used as
is to bind to the server on login.

Add a field for it, like the LDAP realm has, with the 'sAMAccountName'
default as empty text.

Signed-off-by: Michal Fox <me@dualfroz.com>
This commit is contained in:
dualfroz committed 2026-10-03 03:22:46 +02:00
1 parent f21df27595
commit dca2398378
1 file changed
+7
+7
View File
@@ -17,6 +17,13 @@ Ext.define('PVE.panel.ADInputPanel', {
emptyText: 'company.net', emptyText: 'company.net',
allowBlank: false, allowBlank: false,
}, },
{
xtype: 'proxmoxtextfield',
name: 'user_attr',
fieldLabel: gettext('User Attribute Name'),
emptyText: Proxmox.Utils.defaultText + ' (sAMAccountName)',
deleteEmpty: !me.isCreate,
},
{ {
xtype: 'proxmoxcheckbox', xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Case-Sensitive'), fieldLabel: gettext('Case-Sensitive'),