2014-12-11 11:16 GMT+01:00 Dinesh Babu <[email protected]>: > Hi, > > > > If I want to sync a user whose samAccountName has either an open brace,(, > or a closing brace,), I get the following error > > > > javax.naming.directory.InvalidSearchFilterException: Unbalanced > parenthesis; remaining name '' > > > > There are two places LSC does an ldap search > > > > 1. In org.lsc.jndi. JndiServices.doGetAttrsList(...) > > > > NamingEnumeration<SearchResult> results = ctx.search(searchBase, > searchFilter, constraints); > > > > 2. In org.lsc.jndi. AbstractSimpleJndiService. get(......) > > > > searchString = Pattern.compile("\\{" + attributeName + "\\}", > Pattern.CASE_INSENSITIVE).matcher(searchString).replaceAll(Matcher.quoteReplacement(valueId)); > > > > > > 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? > >
Hi, seems indeed to be a bug. http://tools.lsc-project.org/issues/745 Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

