fix(ldap/tls): allow to upload tls ca certificate [EE-3654] (#7340)
parent
fb14a85483
commit
e5b27d7a57
|
@ -7,6 +7,7 @@ storybook-static
|
||||||
.tmp
|
.tmp
|
||||||
**/.vscode/settings.json
|
**/.vscode/settings.json
|
||||||
**/.vscode/tasks.json
|
**/.vscode/tasks.json
|
||||||
|
.vscode
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
|
@ -5,6 +5,7 @@ export const ldapSettings = {
|
||||||
controller,
|
controller,
|
||||||
bindings: {
|
bindings: {
|
||||||
settings: '=',
|
settings: '=',
|
||||||
|
tlscaCert: '=',
|
||||||
state: '<',
|
state: '<',
|
||||||
connectivityCheck: '<',
|
connectivityCheck: '<',
|
||||||
onSaveSettings: '<',
|
onSaveSettings: '<',
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default class LdapSettingsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$onInit() {
|
$onInit() {
|
||||||
this.tlscaCert = this.settings.TLSCACert;
|
this.tlscaCert = this.settings.TLSConfig.TLSCACert;
|
||||||
}
|
}
|
||||||
|
|
||||||
onChangeServerType(serverType) {
|
onChangeServerType(serverType) {
|
||||||
|
|
|
@ -187,7 +187,7 @@ function SettingsAuthenticationController($q, $scope, $state, Notifications, Set
|
||||||
return (
|
return (
|
||||||
_.compact(ldapSettings.URLs).length &&
|
_.compact(ldapSettings.URLs).length &&
|
||||||
(ldapSettings.AnonymousMode || (ldapSettings.ReaderDN && ldapSettings.Password)) &&
|
(ldapSettings.AnonymousMode || (ldapSettings.ReaderDN && ldapSettings.Password)) &&
|
||||||
(!isTLSMode || $scope.formValues.TLSCACert || ldapSettings.TLSConfig.TLSSkipVerify) &&
|
(!isTLSMode || (isTLSMode && $scope.formValues.TLSCACert) || ldapSettings.TLSConfig.TLSSkipVerify) &&
|
||||||
(!$scope.settings.LDAPSettings.AdminAutoPopulate || ($scope.settings.LDAPSettings.AdminAutoPopulate && $scope.formValues.selectedAdminGroups.length > 0))
|
(!$scope.settings.LDAPSettings.AdminAutoPopulate || ($scope.settings.LDAPSettings.AdminAutoPopulate && $scope.formValues.selectedAdminGroups.length > 0))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue