diff options
author | Michael Adam <obnox@samba.org> | 2013-08-28 14:03:33 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-10-01 11:22:16 +0000 |
commit | a54e21bdc3624ab85bbe2a2112598c05feb2d56f (patch) | |
tree | b31a4c353be71189c5996e709338743527eeaa68 /source3 | |
parent | dd004e8193ccdbb94de4c32e301a163f0b6d2d0e (diff) | |
download | samba-a54e21bdc3624ab85bbe2a2112598c05feb2d56f.tar.gz samba-a54e21bdc3624ab85bbe2a2112598c05feb2d56f.tar.bz2 samba-a54e21bdc3624ab85bbe2a2112598c05feb2d56f.zip |
idmap_autorid: add a db_context argument to idmap_autorid_saveconfig()
Pair-Programmed-with: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 8 |
1 files changed, 4 insertions, 4 deletions
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")); |