instaclustr / cassandra-ldap

LDAP Authenticator for Apache Cassandra
Apache License 2.0
24 stars 17 forks source link

Active directory authentication #1

Closed vm00001 closed 4 years ago

vm00001 commented 6 years ago

When using the ldap module against Active Directory we are getting a "javax.naming.CommunicationException: Connection reset" after 15 minutes of idle connection.

kgreav commented 6 years ago

Sounds like AD is killing the persistent LDAP connection. I guess as a work-around we could refresh the connection periodically, or maybe there's some timeout you can set on the AD side?

smiklosovic commented 5 years ago

Hi @vm00001

Maybe this is helpful for OpenLDAP? (1)

5.2.1.1. olcIdleTimeout: Specify the number of seconds to wait before forcibly closing an idle client connection. A value of 0, the default, disables this feature.

Please let us know if it helped.

(1) https://www.openldap.org/doc/admin24/guide.html#Configuration%20Directives