I had exactly the same problem as you. It sounds very obvious - check that the value you are matching against is the same as the value you're passing as the parameter value, for example:
cn=someuser, ou=businessunit, dc=example, dc=com
is not the same as:
cn=someuser,ou=businessunit,dc=example,dc=com
In this case (which is based on the problem I experienced) it wasn't obvious to me that the first string had spaces where as the second one didn't.
I found that when the two values were exactly the same (as you would expect for an =) setString worked fine.
|