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
Simple error : instead of doing (!myAttribute=myValue) we should do (!(myAttribute=myValue)).
First of all thank you for your reply but I correctly wrote my query as (!myAttribute=myValue).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.