Skip to content

Commit

Permalink
Enforce baseDn for LDAP provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Dor committed Dec 6, 2017
1 parent 6ac593f commit 16690a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/io/kamax/mxisd/config/ldap/LdapConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 16690a0

Please sign in to comment.