Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup multiple way of authentication in Jenkins such as LDAP and Jenkins User database?

Actually the authentication into our Jenkins is done through LDAP.

Some people in my team are not member of the LDAP.

Is there a way to use both LDAP and Jenkins user database?

like image 981
Youssouf Maiga Avatar asked Apr 20 '18 09:04

Youssouf Maiga


People also ask

How do you configure security for your Jenkins are you using LDAP for authentication?

You need to manually create each user. If you want to access the Jenkins with LDAP credentials (i.e. with Active Directory Credentials), we need to install the LDAP plugin in Jenkins. Jenkins has a native LDAP plugin which can be used to authenticate users against an external LDAP server, such as OpenLDAP etc.

How many ways we can provide security for your Jenkins server?

Core Jenkins supports four security realms: delegate to servlet container, Jenkins's own user database, LDAP, and Unix user/group database. The "Unix user/group database" option uses Unix's PAM database to authenticate Jenkins users.


1 Answers

This is not possible as described. The feature request is JENKINS-15063.

However, it is possible to approximate in a few ways (though the Jenkins user database still won't be usable).

  • For multiple LDAP realms you can set up a single proxy server that combines the forests.
  • Using PAM you can define multiple authentication sources and fallbacks in e.g. /etc/pam.d/jenkins
like image 119
OrangeDog Avatar answered Sep 28 '22 03:09

OrangeDog



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!