From beaeb5ed5ce2433099b6de157f1d62de704eab5c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Feb 2005 04:20:56 +0000 Subject: [PATCH] Fix if HAVE_TLS is missing --- servers/slapd/back-ldap/bind.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 0436f98da7..12ea18a8e0 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -246,6 +246,7 @@ ldap_back_prepare_conn( struct ldapconn **lcp, Operation *op, SlapReply *rs, lda ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_ON ); } +#ifdef HAVE_TLS /* start TLS ("start-tls"/"try-start-tls" statements) */ if ( ( LDAP_BACK_USE_TLS( li ) || ( op->o_conn->c_is_tls && LDAP_BACK_PROPAGATE_TLS( li ) ) ) && !ldap_is_ldaps_url( li->url ) ) { @@ -310,6 +311,7 @@ retry:; goto error_return; } } +#endif if ( *lcp == NULL ) { *lcp = (struct ldapconn *)ch_malloc( sizeof( struct ldapconn ) ); -- 2.39.5