From 085eed30c2df68e2733bac893873c14e63f3e35c Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Mon, 26 Jun 2023 11:39:16 +0200 Subject: [PATCH] window: ldap auth edit forbid specifying a bind_dn without a password this commit enforces passwords when using an non-anonymous bind. hence, it removes the possibility of configuring unauthenticated binds and brings the gui in-line with the backend. Signed-off-by: Stefan Sterz --- src/window/AuthEditLDAP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/AuthEditLDAP.js b/src/window/AuthEditLDAP.js index cae7c80..6aafb98 100644 --- a/src/window/AuthEditLDAP.js +++ b/src/window/AuthEditLDAP.js @@ -113,9 +113,9 @@ Ext.define('Proxmox.panel.LDAPInputPanel', { inputType: 'password', fieldLabel: gettext('Bind Password'), name: 'password', - allowBlank: true, cbind: { emptyText: get => !get('isCreate') ? gettext('Unchanged') : '', + allowBlank: '{!isCreate}', }, bind: { disabled: "{anonymous_search}",