]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/config.c
Fix rev 1.52, frontendDB uses index {-1}.
[openldap] / servers / slapd / config.c
index f12fd95ccae9517b0782460072d870e44442ea11..34ebb1d25cd4df9f5d2a1b2f604439814aeca354 100644 (file)
@@ -1296,6 +1296,7 @@ void bindconf_free( slap_bindconf *bc ) {
 #endif
 }
 
+#ifdef HAVE_TLS
 static struct {
        const char *key;
        size_t offset;
@@ -1340,7 +1341,7 @@ int bindconf_tls_set( slap_bindconf *bc, LDAP *ld )
        }
 #ifdef HAVE_OPENSSL_CRL
        if ( bc->sb_tls_crlcheck ) {
-               rc = ldap_int_tls_config( ld, LDAP_OPT_X_TLS_REQUIRE_CERT,
+               rc = ldap_int_tls_config( ld, LDAP_OPT_X_TLS_CRLCHECK,
                        bc->sb_tls_crlcheck );
                if ( rc ) {
                        Debug( LDAP_DEBUG_ANY,
@@ -1362,6 +1363,7 @@ int bindconf_tls_set( slap_bindconf *bc, LDAP *ld )
        
        return res;
 }
+#endif
 
 /* -------------------------------------- */