Fix Bug 69625 - [LDAP] Default port does not change after enabling Enable SSL option when configuring LDAP server
This commit is contained in:
parent
4cf16f5b2b
commit
d4a547e32a
@ -14,7 +14,6 @@ import delay from "lodash/delay";
|
||||
import { toastr } from "@docspace/shared/components/toast";
|
||||
|
||||
const constants = {
|
||||
NULL_PERCENT: 0,
|
||||
SSL_LDAP_PORT: 636,
|
||||
DEFAULT_LDAP_PORT: 389,
|
||||
GET_STATUS_TIMEOUT: 1000,
|
||||
@ -606,6 +605,15 @@ class LdapFormStore {
|
||||
|
||||
setIsSslEnabled = (enabled) => {
|
||||
this.isSslEnabled = enabled;
|
||||
|
||||
if (
|
||||
this.requiredSettings.portNumber == constants.DEFAULT_LDAP_PORT ||
|
||||
this.requiredSettings.portNumber == constants.SSL_LDAP_PORT
|
||||
) {
|
||||
this.setPortNumber(
|
||||
enabled ? constants.SSL_LDAP_PORT : constants.DEFAULT_LDAP_PORT,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
get isCronEnabled() {
|
||||
|
Loading…
Reference in New Issue
Block a user