1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-20 13:11:41 +00:00

support ldaps (#670)

This commit is contained in:
Mario Voigt
2023-03-21 21:56:14 +01:00
committed by GitHub
parent b561eaee6d
commit 430ebbd1c5
6 changed files with 31 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ public enum ConfigType {
LDAP_ENABLED,
LDAP_HOST,
LDAP_PORT,
LDAP_USESSL,
LDAP_ADMIN_DN,
LDAP_ADMIN_PASSWORD,
LDAP_BASE_DN,

View File

@@ -66,6 +66,7 @@ public class LdapAuthenticationHandler implements AuthenticationHandler {
LdapConnectionConfig config = new LdapConnectionConfig();
config.setLdapHost(ConfigUtil.getConfigStringValue(ConfigType.LDAP_HOST));
config.setLdapPort(ConfigUtil.getConfigIntegerValue(ConfigType.LDAP_PORT));
config.setUseSsl(ConfigUtil.getConfigBooleanValue(ConfigType.LDAP_USESSL));
config.setName(ConfigUtil.getConfigStringValue(ConfigType.LDAP_ADMIN_DN));
config.setCredentials(ConfigUtil.getConfigStringValue(ConfigType.LDAP_ADMIN_PASSWORD));