Skip to content

Correct logic for when start tls is used for ldap connections

Cameron Ditchfield requested to merge cameron/stork-hook-ldap:fix-starttls into main

As outlined in this issue, when using ldaps to connect to an ldap server starttls is used. I've updated the logic in the Dial function such that StartTLS is only called when the connection is not a tls one.

This has been tested on a locally built stork server connecting to a FreeIPA server using ldaps.

Merge request reports