Skip to content

Commit

Permalink
Merge pull request #58 from fbelzunc/JENKINS-40599
Browse files Browse the repository at this point in the history
[JENKINS-40599] Not throw any Exception in case there is not any domain configured in the descriptor
  • Loading branch information
fbelzunc committed Mar 2, 2017
2 parents fac8df0 + d36ab0a commit 079bd37
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -136,9 +136,6 @@ public class ActiveDirectoryUnixAuthenticationProvider extends AbstractActiveDir
private final static String LDAP_READ_TIMEOUT = "com.sun.jndi.ldap.read.timeout";

public ActiveDirectoryUnixAuthenticationProvider(ActiveDirectorySecurityRealm realm) {
if (realm.domains==null) {
throw new IllegalArgumentException("An Active Directory domain name is required but it is not set");
}
this.site = realm.site;
this.domains = realm.domains;
this.groupLookupStrategy = realm.getGroupLookupStrategy();
Expand Down

0 comments on commit 079bd37

Please sign in to comment.