]> git.sur5r.net Git - openldap/commitdiff
Fix if HAVE_TLS is missing
authorHoward Chu <hyc@openldap.org>
Fri, 18 Feb 2005 04:20:56 +0000 (04:20 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 18 Feb 2005 04:20:56 +0000 (04:20 +0000)
servers/slapd/back-ldap/bind.c

index 0436f98da77b16a52f96506aa7575db57d2113fe..12ea18a8e0479ee98f4e98d3111156604a21aef2 100644 (file)
@@ -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 ) );