Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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') }
}
—