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 3211499..565ed08 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 class LdapConfig { 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"); }