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