diff --git a/src/main/java/io/kamax/mxisd/config/ldap/LdapConfig.java b/src/main/java/io/kamax/mxisd/config/ldap/LdapConfig.java index 32114995..565ed08a 100644 --- a/src/main/java/io/kamax/mxisd/config/ldap/LdapConfig.java +++ b/src/main/java/io/kamax/mxisd/config/ldap/LdapConfig.java @@ -162,11 +162,14 @@ public void build() { throw new IllegalStateException("LDAP port is not valid"); } + if (StringUtils.isBlank(conn.getBaseDn())) { + throw new ConfigurationException("ldap.connection.baseDn"); + } + if (StringUtils.isBlank(attribute.getUid().getType())) { throw new IllegalStateException("Attribute UID Type cannot be empty"); } - if (StringUtils.isBlank(attribute.getUid().getValue())) { throw new IllegalStateException("Attribute UID value cannot be empty"); }