Skip to content

Commit

Permalink
lib-ldap: Support libldap without LDAP_OPT_X_TLS_NEWCTX.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 23, 2016
1 parent 497920d commit 5faca5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-ldap/ldap-connection.c
Expand Up @@ -88,8 +88,10 @@ int ldap_connection_setup(struct ldap_connection *conn, const char **error_r)

ldap_set_option(conn->conn, LDAP_OPT_REFERRALS, 0);

#ifdef LDAP_OPT_X_TLS_NEWCTX
opt = 0;
ldap_set_option(conn->conn, LDAP_OPT_X_TLS_NEWCTX, &opt);
#endif

return 0;
}
Expand Down

0 comments on commit 5faca5c

Please sign in to comment.