Background: There is a SLDAP(ldap over ssl) server, I would like to use jmeter ldap sampler to test authentication.
Target: I would like to test the ldap ssl connection
This is involved with cert import to java key store
Below is the steps;
1. copy the cert file from ldap server to local
scp <username>@<ldap server>:/etc/openldap/cacerts/cacert.pem ./
2. import certificate into Java Key Store (JKS)
sudo keytool -import -alias afiliasldap1 -keystore cacerts -file /tmp/cacert.pem
Note: input keystore pass: changeit
Note: on jvm, location for cert: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security
3. Verify the import done successfully by showing the cert content:
keytool -list -v -alias afiliasldap1 -keystore cacerts -storepass changeit
In step3, you will see cert content shown, means import is done successfully
Now you can proceed to use your ldap sampler for ldap over ssl testing
Ensure that
– select “Use Secure LDAP Protocal” in LDAP thread bind
– and use ssl port(default 636) in LDAP Request Defaults