From 78970361b308e6782ef927bb2f0e01c8982a13f7 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Fri, 17 Mar 2023 09:47:21 +0100 Subject: [PATCH] auth ui: add `firstname` and `lastname` sync-attribute fields This allows the user to set up a mapping for `firstname` and `lastname` attributes for LDAP user syncs. Signed-off-by: Lukas Wagner --- src/window/AuthEditLDAP.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/window/AuthEditLDAP.js b/src/window/AuthEditLDAP.js index 506ba02..aa85c5d 100644 --- a/src/window/AuthEditLDAP.js +++ b/src/window/AuthEditLDAP.js @@ -200,7 +200,7 @@ Ext.define('Proxmox.panel.LDAPSyncInputPanel', { xtype: 'pmxAuthLDAPSyncPanel', mixins: ['Proxmox.Mixin.CBind'], - editableAttributes: ['email'], + editableAttributes: ['firstname', 'lastname', 'email'], editableDefaults: ['scope', 'enable-new'], default_opts: {}, sync_attributes: {}, @@ -282,6 +282,16 @@ Ext.define('Proxmox.panel.LDAPSyncInputPanel', { }, column1: [ + { + xtype: 'proxmoxtextfield', + name: 'firstname', + fieldLabel: gettext('First Name attribute'), + }, + { + xtype: 'proxmoxtextfield', + name: 'lastname', + fieldLabel: gettext('Last Name attribute'), + }, { xtype: 'proxmoxtextfield', name: 'email',