]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
auth ui: add `firstname` and `lastname` sync-attribute fields
authorLukas Wagner <l.wagner@proxmox.com>
Fri, 17 Mar 2023 08:47:21 +0000 (09:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Mar 2023 15:41:59 +0000 (16:41 +0100)
This allows the user to set up a mapping for `firstname` and `lastname`
attributes for LDAP user syncs.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
src/window/AuthEditLDAP.js

index 506ba022a2e81dbe6c8ec521f1e8c9e962093d57..aa85c5d1cea6eb4f372ba27de5d18343506cbeaa 100644 (file)
@@ -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',