How can I add external users on Jenkins which is configured to use LDAP as user database?

纵然是瞬间 提交于 2019-12-13 15:50:40

问题


I'm setting up a Jenkins server for a project of my company. I configured the security realm to use LDAP and had no problem until we decided to hire external development team along with our devs. We cannot create LDAP accounts for them for some reasons, however it is essential to use CI server together to collaborate and to get benefits of using CI server.

Is it possible to add external users who are not in LDAP?

I can think of only one solution so far.

  • use 'Jenkins's own user database' instead of 'LDAP' and create all users manually.

Any other solutions for this situations?


回答1:


I don't think so , probably the best you can do it try to persuade your network security team to add the external development team to your LDAP system giving them a different security role.

For example you could create roles for jenkins_admin, jenkins_staff, jenkins_contractor and then give them different privileges but without rights to other resources.

How will you allow your external development team to commit to your SCM?




回答2:


Seems like PAM is the way to go.

I haven't done it and am looking into doing it, but here is a suggestion from the lead Jenkins developer: http://jenkins-ci.361315.n4.nabble.com/Mixed-mode-authentication-td3447248.html



来源:https://stackoverflow.com/questions/21157396/how-can-i-add-external-users-on-jenkins-which-is-configured-to-use-ldap-as-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!