Acegi Plugin

Missing 'searchSubtree = conf.ldapSearchSubtree' inside ldapAuthoritiesPopulator

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: Grails-Acegi 0.3
  • Fix Version/s: Grails-Acegi 0.4
  • Component/s: None
  • Labels:
    None
  • Environment:
    MS AD @ Windows 2003 R2

Description

Code setting searchSubtree for ldapAuthoritiesPopulator is missing, so it is not possible to get groups for LDAP user.
The file is AcegiGrailsPlugin.groovy.

if (conf.ldapRetrieveGroupRoles) {
ldapAuthoritiesPopulator(DefaultLdapAuthoritiesPopulator, ref('contextSource'), conf.ldapGroupSearchBase) { groupRoleAttribute = conf.ldapGroupRoleAttribute groupSearchFilter = conf.ldapGroupSearchFilter + searchSubtree = conf.ldapSearchSubtree }
ldapAuthProvider(LdapAuthenticationProvider, ref('ldapAuthenticator'), ref('ldapAuthoritiesPopulator')) { userDetailsContextMapper = ref('ldapUserDetailsMapper') }
}

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: