How can I limit Jenkins LDAP access to users in a specific groupOfNames?

NOTE: I'm not sure if this would work for LDAP (we use active directory)

  • In the project configuration page, check Matrix-based security.
  • Remove all access for anonymous
  • Add your 'groupOfNames' to the "user/group to add" and give them the rights you want to.

Any user in that group should get the rights you assign. This is how we did it.


Old thread, I know. I got it working by installing the memberof and refint overlays on the OpenLDAP server (2.4.31) and setting the User Search Base on Jenkins to filter the result, i.e.

(&(uid={0})(memberOf=cn=MyGroupName,ou=group,dc=mydomain,dc=com))