Issue #745 has been reported by Clément OUDOT.
----------------------------------------
Bug #745: Pivot value not escaped in filter
http://tools.lsc-project.org/issues/745
Author: Clément OUDOT
Status: Assigned
Priority: Normal
Assigned to: Raphaël Ouazana
Category: Core
Target version: 2.1.2
Problem in version:
Reported by Dinesh Babu:
If I want to sync a user whose samAccountName has either an open brace,(, or a
closing brace,), I get the following error
<pre>
javax.naming.directory.InvalidSearchFilterException: Unbalanced parenthesis;
remaining name ''
</pre>
There are two places LSC does an ldap search
1. In org.lsc.jndi. JndiServices.doGetAttrsList(...)
<pre>
NamingEnumeration<SearchResult> results = ctx.search(searchBase, searchFilter,
constraints);
</pre>
2. In org.lsc.jndi. AbstractSimpleJndiService. get(......)
<pre>
searchString = Pattern.compile("\\{" + attributeName + "\\}",
Pattern.CASE_INSENSITIVE).matcher(searchString).replaceAll(Matcher.quoteReplacement(valueId));
</pre>
I think you need to escape the filter string for the characters "*"," (", ")",
"\" as mentiond in this article https://tools.ietf.org/search/rfc2254
Even if I provide the escaped filter string it passes the stage mentioned in
(1) , but it fails at (2). Can you please raise a ticket and fix this please?
Or is there any other work around?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev