LDAPS Pooled Connections- are they possible?


I’ve seen this question asked several times but I haven’t seen a good answer to it yet.

I’ve got my Openfire config set up to use an OpenLDAP server for user authentication. Our OpenLDAP server only permits secure connections so I’m using LDAPS to connect to it.

Unfortunately this means that connections aren’t pooled.

According to the LDAP guide at https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/ldap-gu ide.html

It says “Note that if you turn on LDAP debugging, connection pooling will not be enabled. If SSL LDAP mode is enabled, you must set a system property to enable pooling of SSL LDAP connections.”

It doesn’t however say which property/properties to set though so I’ve started off with putting the following options in /etc/syconfig/openfire:

“-Dcom.sun.jndi.ldap.connect.pool.protocol=plain ssl -Dcom.sun.jndi.ldap.connect.pool.maxsize=10”

Do I need to set anything else or is LDAPS connection pooling not possible? I’m using Openfire 3.10.0 and OpenJDK 1.7.0_79