The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP User Object Filter configuration

Alexandre Basciano
July 4, 2011

Hello,

I work with crowd 2.2.7 and I setup a LDAP directory (that works fine).

But when I tried to apply an User Object Filter by using the following character : "!"

I got an the error message below:

No results were found from your search. org.springframework.ldap.InvalidSearchFilterException: Unbalanced parenthesis; nested exception is javax.naming.directory.InvalidSearchFilterException: Unbalanced parenthesis;

All the others operator & | ... works fine

I would like to know if there is a known issue about this specific character "!" ?

Thank you for your help.

Regards,

Alexandre

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Alexandre Basciano
July 19, 2011

Simple error : instead of doing (!myAttribute=myValue) we should do (!(myAttribute=myValue)).

0 votes
Alexandre Basciano
July 5, 2011

First of all thank you for your reply but I correctly wrote my query as (!myAttribute=myValue).

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 4, 2011

So your query looks like

(!givenName=FrancescoZappa) - correct
and not
!(givenName=FrancescoZappa) - incorrect

It is most common mistake. Not an expert though (a poor developer), that's what I remember ...
TAGS
AUG Leaders

Atlassian Community Events