LDAP User Object Filter configuration

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

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

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 ...

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

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,081 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot