Some notes for using Jenkins that might be helpful.
Resetting the security
When experimenting with various security options, like LDAP, you might find yourself “locked out” and not being able to log in. To mitigate this, edit the config.xml in your jenkins directory:
sudo nano /var/lib/jenkins/config.xml
and change useSecurity to false: <useSecurity>false</useSecurity>
Then restart jenkins:
sudo service jenkins restart
Alternatively, when experimenting, set your Authorization to “Anyone can do anything”, so that you can still make changes even when not logged in.
Limiting access to specific LDAP group
To limit access to Jenkins to users of specific LDAP group, you can use Authorization “Matrix-based security”. For instance, you could have LDAP groups myJenkinsUsers and myJenkinsAdmins in your Active Directory and then add groups with the same name to your Jenkins Matrix-based security table along with all the actions each group would be allowed to use.