|
|
|
@ -121,6 +121,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
} = connectionData as ConnectionJDBC; |
|
|
|
|
this.oldPassword = password; |
|
|
|
|
this.oldSshSecret = sshSecret; |
|
|
|
|
!BI.isUndefined(principal) && this.getPrincipals(keyPath, principal); |
|
|
|
|
|
|
|
|
|
const { |
|
|
|
|
initialSize, |
|
|
|
@ -1335,6 +1336,20 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
this.form.keyPath.setFileInfo(KerberosParams); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public getPrincipals(keyPath, principal) { |
|
|
|
|
let self = this; |
|
|
|
|
api.getPrincipals(keyPath).then(res => { |
|
|
|
|
const principalsItems = BI.map(res.data, function(index, item) { |
|
|
|
|
return { |
|
|
|
|
text: item, |
|
|
|
|
value: item |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
self.form.principal.populate(principalsItems); |
|
|
|
|
self.form.principal.setValue(principal); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public changePrincipal() { |
|
|
|
|
let self = this; |
|
|
|
|
const KerberosParams = BI.extend({},{ |
|
|
|
|