From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 6E3991FF38E for ; Tue, 7 May 2024 10:48:40 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 279D29D8D; Tue, 7 May 2024 10:48:44 +0200 (CEST) From: Markus Frank To: pmg-devel@lists.proxmox.com Date: Tue, 7 May 2024 10:47:45 +0200 Message-Id: <20240507084745.8025-8-m.frank@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507084745.8025-1-m.frank@proxmox.com> References: <20240507084745.8025-1-m.frank@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.079 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pmg-devel] [PATCH pmg-gui v2 7/7] add panel for realms to User Management X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" Make the realm configuration available in PMG and disable LDAP/AD realms for now and use the name oidc instead of openid as realm type. Signed-off-by: Markus Frank --- js/UserManagement.js | 6 ++++++ js/Utils.js | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/js/UserManagement.js b/js/UserManagement.js index 65fabbf..54493b1 100644 --- a/js/UserManagement.js +++ b/js/UserManagement.js @@ -34,5 +34,11 @@ Ext.define('PMG.UserManagement', { itemId: 'pop', iconCls: 'fa fa-reply-all', }, + { + xtype: 'pmxAuthView', + title: gettext('Realms'), + itemId: 'domains', + iconCls: 'fa fa-address-book-o', + }, ], }); diff --git a/js/Utils.js b/js/Utils.js index 149abd6..8151035 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -851,6 +851,21 @@ Ext.define('PMG.Utils', { constructor: function() { var me = this; + // use oidc instead of openid + Proxmox.Schema.authDomains.oidc = Proxmox.Schema.authDomains.openid; + delete Proxmox.Schema.authDomains.openid; + + // Disable LDAP/AD as a realm until LDAP/AD login is implemented + Proxmox.Schema.authDomains.ldap.add = false; + Proxmox.Schema.authDomains.ad.add = false; + + Proxmox.Schema.authDomains.pmg = { + add: false, + edit: false, + pwchange: false, + sync: false, + }; + // do whatever you want here Proxmox.Utils.override_task_descriptions({ applycustomscores: ['', gettext('Apply custom SpamAssassin scores')], -- 2.39.2 _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel