From: Markus Frank <m.frank@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui v3 2/3] realms: allow PAM and PMG realms to be edited and set as the default
Date: Wed, 12 Mar 2025 10:43:14 +0100 [thread overview]
Message-ID: <20250312094315.1537-3-m.frank@proxmox.com> (raw)
In-Reply-To: <20250312094315.1537-1-m.frank@proxmox.com>
Signed-off-by: Markus Frank <m.frank@proxmox.com>
---
new to v3
js/UserManagement.js | 1 +
js/Utils.js | 16 ++++++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/js/UserManagement.js b/js/UserManagement.js
index f6ada1b..79d1e3f 100644
--- a/js/UserManagement.js
+++ b/js/UserManagement.js
@@ -40,6 +40,7 @@ Ext.define('PMG.UserManagement', {
itemId: 'realms',
baseUrl: '/access/auth-realm',
storeBaseUrl: '/access/auth-realm',
+ showDefaultRealm: true,
iconCls: 'fa fa-address-book-o',
},
],
diff --git a/js/Utils.js b/js/Utils.js
index d4a55a8..aa17d83 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -877,12 +877,16 @@ Ext.define('PMG.Utils', {
Proxmox.Schema.authDomains.ldap.add = false;
Proxmox.Schema.authDomains.ad.add = false;
- Proxmox.Schema.authDomains.pam.edit = false;
- Proxmox.Schema.authDomains.pmg = {
- add: false,
- edit: false,
- sync: false,
- };
+ Proxmox.Schema.overrideAuthDomains({
+ pmg: {
+ name: 'Proxmox Mail Gateway authentication server',
+ ipanel: 'pmxAuthSimplePanel',
+ add: false,
+ edit: true,
+ pwchange: true,
+ sync: false,
+ },
+ });
// do whatever you want here
Proxmox.Utils.override_task_descriptions({
--
2.39.5
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
next prev parent reply other threads:[~2025-03-12 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 9:43 [pmg-devel] [PATCH pmg-api/pmg-gui v3 0/3] add default realm option and OIDC configuration panel Markus Frank
2025-03-12 9:43 ` [pmg-devel] [PATCH pmg-api v3 1/3] Auth Plugin: stop forcing the default realm to be the pmg realm Markus Frank
2025-03-12 9:43 ` Markus Frank [this message]
2025-03-12 9:43 ` [pmg-devel] [PATCH pmg-gui v3 3/3] add OIDC configuration panel for PMG Markus Frank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250312094315.1537-3-m.frank@proxmox.com \
--to=m.frank@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal