]
Juergen H commented on SECURITY-847:
------------------------------------
in my efforts migrating from wildfly-8.2.1.Final to wildfly-14.0.1.Final I found this not
to be an issue any more with
org.jboss.security.negotiation.AdvancedLdapLoginModule in
jboss-negotiation-extras-3.0.4.Final.jar
seems it got fixed somewhere in between.
close?
LdapExtLoginModule rolesSearch yields Decode Error
--------------------------------------------------
Key: SECURITY-847
URL:
https://issues.jboss.org/browse/SECURITY-847
Project: PicketBox
Issue Type: Feature Request
Components: PicketBox
Affects Versions: PicketBox_4_0_21.Beta1
Reporter: Juergen H
Assignee: Peter Skopek
Priority: Major
Labels: ldap
Migrating an application using LdapExtLoginModule from jboss-4.2.3.GA to wildfly-8.1
Encountered a problem with ldap roles search:
javax.naming.NamingException: [LDAP: error code 1 - Decode Error in response from BE
(backend problem)]; remaining name 'ou=
debugging and comparing result:
jboss-4.2.3.GA LdapExtLoginModule does set
javax.naming.directory.SearchControls.setReturningAttributes for role search:
{code:title=jboss-4.2.3.GA LdapExtLoginModule}
SearchControls constraints = new SearchControls();
constraints.setSearchScope(searchScope);
constraints.setReturningAttributes(new String[0]);
constraints.setTimeLimit(searchTimeLimit);
rolesSearch(ctx, constraints, username, userDN, recursion, 0);
{code}
wildfly-8.1 picketbox-4.0.21.Beta1.jar LdapExtLoginModule does NOT set
javax.naming.directory.SearchControls.setReturningAttributes for role search:
{code:title=wildfly-8.1 LdapExtLoginModule}
// Query for roles matching the role filter
SearchControls constraints = new SearchControls();
constraints.setSearchScope(searchScope);
constraints.setTimeLimit(searchTimeLimit);
rolesSearch(ctx, constraints, username, userDN, recursion, 0);
{code}