- How to set-up Jenkins for multiple “untrusted” domains of Active Directory.
- CloudBees Jenkins Enterprise - Managed Master (CJE-MM)
- CloudBees Jenkins Enterprise - Operations Center (CJE-OC)
- CloudBees Jenkins Platform - Client Master (CJP-CM)
- CloudBees Jenkins Platform - Operations Center (CJP-OC)
- Jenkins LTS
- Active Directory (AD) plugin
- Windows Server 2012 R2
In order to achieve this configuration, the following requirements need to be fulfilled:
- At the network/infrastructure level, the Jenkins instance must be able to connect to both domain servers.
- A user (“UserX”) is needed in all the different AD domains that shares common attributes that Jenkins can use to bind as. Those same values are:
display name(In fact, changes on one applies to the other)
Note: This can be checked by using, for example, Active Directory Explorer and trying to log in on the multiple domain, using for “Bind DN” field the
display name value and for “Bind Password” the
password of “UserX”.
- Include the multiple domains separated by “,” ( a comma without spaces ) in the
Bind DNto the
Bind Passwordto the
passwordof the mentioned “UserX”.
Note: anonymous user for Bind DN is not valid.
The following scenario helps to understand the issue and its resolution:
Two different domains (‘example.com’ and ‘example.net’) running on different Windows Server 2012 machines (‘dcpr1’ and ‘dcpr2’, for each domains respectively). Then, Server manager > Tools > Active Directory Users and Computer configuration for each one is as follows:
Global Security Configuration (
$Jenkins_URL/configureSecurity/) > Security Realm > Active Directory would succeed as follows:
Each user (from those 2 different domains) is added to Jenkins Users directory as soon as log into Jenkins. Thus, after logging all of them on the
$Jenkins_URL/asynchPeople/ would look like this: (Note that “UserX” shares same
name but not