I have connected Jenkins to our LDAP server in order to manage permissions for users and groups via the security matrix. Currently it is working for individual user accounts but not for groups.
When I add an LDAP group to the matrix, it shows the group icon next to the group-name (meaning it found the group in LDAP), but when users that are members of that group log in to Jenkins, they only have Anonymous permissions.
I have ran the groovy script given on the LDAP plugin page here: https://plugins.jenkins.io/ldap
When given a valid groupname, it will return:
I've tried modifying the loadGroupbyGroupname line and added another line to try and get the members in the group:
But those commands only return:
How can I get the members in the LDAP group and get these LDAP groups working in Jenkins?