|
Attached are three files for testing:
test.ldif is a sample directory hierarchy I use for testing. It contains an entry with a certificate that I attempt to find. test-export.pem is the certificate I use in this testing. LdapTest is a jUnit test case. It tests whether the entry can be found by a text attribute (successful) and whether same entry can be found by the certificate (unsuccessful). Please update path to the certificate file before runnig the test. Last bit's fixed by Emmanuel and we're golden. Please confirm.
I confirm, after modification in TwixTransformer, that it has been fixed. Thanks Alex for the great work !
I downloaded 1.0RC4 preview, executed LdapTest and I report the following:
when search filter is specifid as ctx.search("ou=users,o=ActiveMQ,dc=example,dc=com", "usercertificate = {0}", new Object[] {cert}, constraints); or ctx.search("ou=users,o=ActiveMQ,dc=example,dc=com", "usercertificate;binary = {0}", new Object[] {cert}, constraints); nothing is returned and the test fails. When search filter is specified as ctx.search("ou=users,o=ActiveMQ,dc=example,dc=com", "usercertificate = {0}", new Object[] {cert.getEncoded()}, constraints); proper entry is returned and the test passes. I can work with the latter though I believe the former is proper. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thanks Nikola.