]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/config.c
Fix prev commit, don't generate a new ctxcsn if we're a consumer with
[openldap] / servers / slapd / config.c
index 165077d7d0a6b0a5398f17e3c1f83d380d61aee8..e69a32c4ab5cdb8b1c67a09299e019d645ef0bd3 100644 (file)
@@ -68,7 +68,6 @@ int           global_gentlehup = 0;
 int            global_idletimeout = 0;
 char   *global_host = NULL;
 char   *global_realm = NULL;
-char           *ldap_srvtab = "";
 char           **default_passwd_hash = NULL;
 struct berval default_search_base = BER_BVNULL;
 struct berval default_search_nbase = BER_BVNULL;
@@ -1255,12 +1254,14 @@ slap_tls_get_config( LDAP *ld, int opt, char **val )
 
        *val = NULL;
        switch( opt ) {
+#ifdef HAVE_TLS
        case LDAP_OPT_X_TLS_CRLCHECK:
                keys = crlkeys;
                break;
        case LDAP_OPT_X_TLS_REQUIRE_CERT:
                keys = vfykeys;
                break;
+#endif
        default:
                return -1;
        }
@@ -1289,7 +1290,10 @@ bindconf_tls_parse( const char *word, slap_bindconf *bc )
 int
 bindconf_tls_unparse( slap_bindconf *bc, struct berval *bv )
 {
+#ifdef HAVE_TLS
        return slap_cf_aux_table_unparse( bc, bv, aux_TLS );
+#endif
+       return -1;
 }
 
 int