From a54e21bdc3624ab85bbe2a2112598c05feb2d56f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 28 Aug 2013 14:03:33 +0200 Subject: idmap_autorid: add a db_context argument to idmap_autorid_saveconfig() Pair-Programmed-with: Atul Kulkarni Signed-off-by: Michael Adam Signed-off-by: Atul Kulkarni Reviewed-by: Volker Lendecke --- source3/winbindd/idmap_autorid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 6b9a472381..df2cba191f 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -793,7 +793,8 @@ static struct autorid_global_config *idmap_autorid_loadconfig(struct db_context } -static NTSTATUS idmap_autorid_saveconfig(struct autorid_global_config *cfg) +static NTSTATUS idmap_autorid_saveconfig(struct db_context *db, + struct autorid_global_config *cfg) { NTSTATUS status; @@ -811,8 +812,7 @@ static NTSTATUS idmap_autorid_saveconfig(struct autorid_global_config *cfg) data = string_tdb_data(cfgstr); - status = dbwrap_trans_store_bystring(autorid_db, CONFIGKEY, - data, TDB_REPLACE); + status = dbwrap_trans_store_bystring(db, CONFIGKEY, data, TDB_REPLACE); talloc_free(cfgstr); @@ -970,7 +970,7 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) goto error; } - status = idmap_autorid_saveconfig(config); + status = idmap_autorid_saveconfig(autorid_db, config); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Failed to store configuration data!\n")); -- cgit