ui: Fix #2827: Add verify SSL cert checkbox for ldap
Because the option is too important to be hidden in CLI. Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
This commit is contained in:
parent
75cac2797f
commit
a06e43f060
@ -53,11 +53,46 @@ Ext.define('PVE.panel.LDAPInputPanel', {
|
||||
fieldLabel: 'SSL',
|
||||
name: 'secure',
|
||||
uncheckedValue: 0,
|
||||
listeners: {
|
||||
change: function(me, newValue) {
|
||||
let verifyCheckbox = me.nextSibling('proxmoxcheckbox[name=verify]');
|
||||
if (newValue === true) {
|
||||
verifyCheckbox.enable();
|
||||
} else {
|
||||
verifyCheckbox.disable();
|
||||
verifyCheckbox.setValue(0);
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
fieldLabel: gettext('Verify Certificate'),
|
||||
name: 'verify',
|
||||
unceckedValue: 0,
|
||||
disabled: true,
|
||||
checked: false,
|
||||
autoEl: {
|
||||
tag: 'div',
|
||||
'data-qtip': gettext('Verify SSL certificate of the server'),
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
me.callParent();
|
||||
},
|
||||
onGetValues: function(values) {
|
||||
let me = this;
|
||||
|
||||
if (!values.verify) {
|
||||
if (!me.isCreate) {
|
||||
Proxmox.Utils.assemble_field_data(values, { 'delete': 'verify' });
|
||||
}
|
||||
delete values.verify;
|
||||
}
|
||||
|
||||
return me.callParent([values]);
|
||||
},
|
||||
});
|
||||
|
||||
Ext.define('PVE.panel.LDAPSyncInputPanel', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user