]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/AuthEditAD.js
1 Ext
.define('PVE.panel.ADInputPanel', {
2 extend
: 'PVE.panel.AuthBase',
3 xtype
: 'pveAuthADPanel',
5 initComponent: function() {
8 if (me
.type
!== 'ad') {
16 fieldLabel
: gettext('Domain'),
17 emptyText
: 'company.net',
21 xtype
: 'proxmoxcheckbox',
22 fieldLabel
: gettext('Case-Sensitive'),
23 name
: 'case-sensitive',
32 fieldLabel
: gettext('Server'),
37 xtype
: 'proxmoxtextfield',
38 fieldLabel
: gettext('Fallback Server'),
39 deleteEmpty
: !me
.isCreate
,
43 xtype
: 'proxmoxintegerfield',
45 fieldLabel
: gettext('Port'),
48 emptyText
: gettext('Default'),
49 submitEmptyText
: false,
52 xtype
: 'proxmoxcheckbox',
57 change: function(field
, newValue
) {
58 let verifyCheckbox
= field
.nextSibling('proxmoxcheckbox[name=verify]');
59 if (newValue
=== true) {
60 verifyCheckbox
.enable();
62 verifyCheckbox
.disable();
63 verifyCheckbox
.setValue(0);
69 xtype
: 'proxmoxcheckbox',
70 fieldLabel
: gettext('Verify Certificate'),
77 'data-qtip': gettext('Verify SSL certificate of the server'),
84 xtype
: 'proxmoxcheckbox',
85 fieldLabel
: gettext('Check connection'),
86 name
: 'check-connection',
92 gettext('Verify connection parameters and bind credentials on save'),
99 onGetValues: function(values
) {
102 if (!values
.verify
) {
104 Proxmox
.Utils
.assemble_field_data(values
, { 'delete': 'verify' });
106 delete values
.verify
;
109 return me
.callParent([values
]);