[pmg-devel] [PATCH pmg-gui v5 10/10] add panel for realms to User Management
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Feb 21 13:45:55 CET 2025
> Markus Frank <m.frank at proxmox.com> hat am 18.02.2025 17:19 CET geschrieben:
>
>
> Make the realm configuration available in PMG and disable LDAP/AD
> realms for now and use the name oidc instead of openid.
>
> Signed-off-by: Markus Frank <m.frank at proxmox.com>
> ---
> js/UserManagement.js | 6 ++++++
> js/Utils.js | 23 +++++++++++++++++++++++
> 2 files changed, 29 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 9b5f054..055b938 100644
> --- a/js/Utils.js
> +++ b/js/Utils.js
> @@ -851,6 +851,29 @@ Ext.define('PMG.Utils', {
> constructor: function() {
> var me = this;
>
> + // use oidc instead of openid
> + Proxmox.Schema.authDomains.oidc = Proxmox.Schema.authDomains.openid;
> + Proxmox.Schema.authDomains.oidc.useTypeInUrl = false;
> + delete Proxmox.Schema.authDomains.openid;
unless we want to rename it to oidc everywhere, this makes me think that it's not a good idea to deviate from the existing naming scheme in PMG?
> +
> + // 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,
> + };
> +
> + Proxmox.Schema.authDomains.pam = {
> + 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.5
>
>
>
> _______________________________________________
> pmg-devel mailing list
> pmg-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
More information about the pmg-devel
mailing list