[pmg-devel] [PATCH pmg-gui 6/6] add pmxAuthView panel to UserManagement

Markus Frank m.frank at proxmox.com
Tue Apr 2 13:27:21 CEST 2024


Make the realm configuration available in PMG and disable LDAP realms for
now.

Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
 js/UserManagement.js | 6 ++++++
 js/Utils.js          | 9 +++++++++
 2 files changed, 15 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 7fa154e..83d53f3 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -833,6 +833,15 @@ Ext.define('PMG.Utils', {
     constructor: function() {
 	var me = this;
 
+	// Disable LDAP as a realm until LDAP login is implemented
+	Proxmox.Schema.authDomains.ldap.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





More information about the pmg-devel mailing list