|[virgo-dev] LDAP over SSL and keystore|
I’m turning to the mailing list with a problem we have with one of our bundles. It is an authentication bundle that validates users against ldap. The code uses a separate keystore where the LDAP’s public key is stored. The code works perfectly in junit tests, but unfortunately in virgo 2.1 the keystore is not used for some reason. I could only get it working if I import the LDAP’s public cert into the JRE’s cacerts keystore. I even tried to put the public key into the $VIRGO/config/keystore, still no luck.
Here is the code:
ldapConnection = new LDAPConnection();
ldapConnection.bind(V3, loginDN, password);
Is there anything different in virgo than in say servlet containers that would cause this issue ?