Skip to content
Permalink
Browse files
Merge pull request #58 from fbelzunc/JENKINS-40599
[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 079bd37c7744af09d371083fa06c857299b9053f
Showing 1 changed file with 0 additions and 3 deletions.
@@ -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();

0 comments on commit 079bd37

Please sign in to comment.