From b9b087384ca020c0a35e4b8e19758552be3d133f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 4 Mar 2005 10:32:51 +0000 Subject: [PATCH] Added config compatibility wrapper for overlays etc... --- servers/slapd/back-bdb/config.c | 19 +++++++++++++++++++ servers/slapd/back-bdb/init.c | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 03054d2a84..a6d4d28e68 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -246,3 +246,22 @@ int bdb_back_init_cf( BackendInfo *bi ) rc = init_config_ocs( bdbocs ); return rc; } + +int bdb_db_config( Backend *be, const char *fname, int lineno, int argc, + char **argv ) +{ + ConfigArgs c = { 0 }; + int rc; + + c.be = be; + c.fname = fname; + c.lineno = lineno; + c.argc = argc; + c.argv = argv; + sprintf( c.log, "%s: line %lu", fname, lineno ); + + rc = parse_config_table( bdbcfg, &c ); + if ( rc == ARG_UNKNOWN ) + rc = SLAP_CONF_UNKNOWN; + return rc; +} diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index df1976feb9..8893333fc3 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -536,7 +536,7 @@ bdb_back_initialize( bi->bi_destroy = 0; bi->bi_db_init = bdb_db_init; - bi->bi_db_config = 0; + bi->bi_db_config = bdb_db_config; bi->bi_db_open = bdb_db_open; bi->bi_db_close = bdb_db_close; bi->bi_db_destroy = bdb_db_destroy; -- 2.39.5