-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.0.3 SP1
-
None
When LdapLoginModule is seaching for roles for a user, it asks for all roles and not for roles, which have a given user as a member.
The seach code is:
Object[] filterArgs =
{userToMatch};
NamingEnumeration answer = ctx.search(rolesCtxDN, roleFilter.toString(), filterArgs, controls);
where the "roleFilter" is "("uidAttrName"=)". For example it can be (member=). But here:
it can be seen, that one have to use "
{0}" and not "*", if it needed to substitute it with "filterArgs"-elements.
I have written my own LdapLoginModule, where only what I changed was this asterisks. It works fine.
- is duplicated by
-
JBAS-2465 LdapLoginModule assign all roles to authenticated user
- Closed