[
http://jira.jboss.com/jira/browse/JBPORTAL-1592?page=comments#action_1237... ]
Boleslaw Dawidowicz commented on JBPORTAL-1592:
-----------------------------------------------
At first sorry I was not responding on this. I was off for some time and working on other
stuff.
To be honest I'm little confused about whats working and whats not. Are we talking
about what kind of filter and where? Like I posted in forums if I put
<value><![CDATA[(&(cn={0})(member=uid=jduke\\\,
Duke,ou=People,o=test,dc=portal,dc=example,dc=com))]]></value> in
identity-config.xml it works. So I understand that 3 backslashes are proper solution for
filter placed there.
Now for roles resolution I also was able to have it working with ldif I posted in forums.
("member: uid=jduke\, Duke,ou=People,o=test,dc=portal,dc=example,dc=com"). So
roles resolution works ok with "strange" user names.
I'm not sure I understand properly what you wrote.
"The filter is constructed by the code, one would not directly add LastName,
FirstName for a filter, or only that specific user would be found."
So are we talking about filter in identity-config.xml or something in code? Mine or yours?
:) Sory but this thread is little to long and hard to follow. Could you provide a real
testcase for this? Like a short ldif + identity-config.xml I could play with. I'm not
sure we are talking about the same things.
Backslashes not escaped correctly with ldap modules
---------------------------------------------------
Key: JBPORTAL-1592
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1592
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Identity
Affects Versions: 2.6 Final
Environment: Windows XP Professional, Jboss 4.3.0, JBoss_Portal_2_6_0 from svn
Reporter: Tobias Roth
Assigned To: Boleslaw Dawidowicz
Fix For: 2.8 Final, 2.6.2 Final
LDAPRoleModule and LDAPExtRoleModule don't find roles associated with users, if the
users DN contains a backslash, as it is frequent with Microsoft Active Directory.
Example logfile excerpts and are given in the forum.
I added a simple filter = filter.replaceAll("\\\\", "\\\\\\\\"); in
one place in LDAPExtRoleModuleImpl.java which fixed the thing for me. However, not knowing
much of java, I don't know the correct place to add this, so that all cases are
fixed.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira