I seem to be having some difficulty with the ldap auth configuration of Shield. I'm able to successfully auth, but Shield appears to be seeing only a subset of LDAP groups available to the user.
Here's the Shield config I'm working with so far:
shield.authc: realms: esusers: type: esusers order: 0 ldap1: type: ldap order: 1 enabled: true url: 'ldaps://auth.company.com:636' user_dn_templates: - "cn={0},ou=Users,o=company" group_search: base_dn: "o=company" # commenting out the group_search section yields no ldap groups returned.
Here's my log snippet. Note: I've not yet set up roles; I need to get the full ldap group list first.
[2015-07-07 09:06:58,764][DEBUG][shield.authc.support ] [Tailhook] the roles [[]], are mapped from these [ldap] groups [[cn=Test-Grp,ou=Groups,o=company, cn=All,ou=Groups,o=company, cn=lnx,ou=POSIXGroups,o=company]] for realm [ldap/ldap1] [2015-07-07 09:06:58,775][DEBUG][shield.authc.ldap ] [Tailhook] authenticated user [myusername], with roles [[]]
Shield appears to be seeing only a subset of the total ldap groups assigned to my user with only one group from each subtree.