syncipanel: 'pveAuthLDAPSyncPanel',
add: true,
tfa: true,
+ pwchange: true,
},
ldap: {
name: gettext('LDAP Server'),
syncipanel: 'pveAuthLDAPSyncPanel',
add: true,
tfa: true,
+ pwchange: true,
},
openid: {
name: gettext('OpenID Server'),
ipanel: 'pveAuthOpenIDPanel',
add: true,
tfa: false,
+ pwchange: false,
},
pam: {
name: 'Linux PAM',
ipanel: 'pveAuthBasePanel',
add: false,
tfa: true,
+ pwchange: true,
},
pve: {
name: 'Proxmox VE authentication server',
ipanel: 'pveAuthBasePanel',
add: false,
+ pwchange: true,
},
},
text: gettext('Password'),
disabled: true,
selModel: sm,
+ enableFn: function(record) {
+ if (record.data.realmtype) {
+ let type = record.data.realmtype;
+ if (PVE.Utils.authSchema[type]) {
+ return !!PVE.Utils.authSchema[type].pwchange;
+ }
+ }
+ return false;
+ },
handler: function(btn, event, rec) {
Ext.create('Proxmox.window.PasswordEdit', {
userid: rec.data.userid,