[
https://issues.apache.org/jira/browse/DIRSTUDIO-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018214#comment-15018214
]
Sorin Sbarnea commented on DIRSTUDIO-1078:
------------------------------------------
Here is something strange about the escaped value, The code below works (the
name of the group being #SOME )
{code}
(sAMAccountName=\23SOME)
{code}
But the queries below do not return anything, even if the CN is correct.
{code}
(memberOf:1.2.840.113556.1.4.1941:=CN=\23SOME,OU=Groups,OU=EMEA,DC=example,DC=net)
(memberOf=CN=\23SOME,OU=Groups,OU=EMEA,DC=example,DC=net)
{code}
And I can assure you that the #SOME group does have several groups as members
and not only this, I do already use a filter that returns them, but not on
DIRSTUDIO. The other app happens to be a Java application and I had to use a
double backslash there in order to make it work.
But so far I was not able to do the same with DIRSTUDIO.
> unable to use # pound hash sign in LDAP filters
> -----------------------------------------------
>
> Key: DIRSTUDIO-1078
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1078
> Project: Directory Studio
> Issue Type: Bug
> Affects Versions: 2.0.0-M9 (2.0.0.v20150606-M9)
> Reporter: Sorin Sbarnea
>
> It seems impossible to perform searches that to use # sign inside. Tried to
> add them, not escaped, escaped with single or double backslash but none of
> these approaches worked.
> Example
> {code}
> (&(objectClass=group)(displayName=*)(|(memberOf:1.2.840.113556.1.4.1941:=CN=\\#SOME,OU=Groups,OU=EMEA,DC=example,DC=net)))
> (&(objectClass=group)(displayName=*)(|(memberOf:1.2.840.113556.1.4.1941:=CN=\#SOME,OU=Groups,OU=EMEA,DC=example,DC=net)))
> (&(objectClass=group)(displayName=*)(|(memberOf:1.2.840.113556.1.4.1941:=CN=#SOME,OU=Groups,OU=EMEA,DC=example,DC=net)))
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)