summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-08-28 14:00:24 +0200
committerVolker Lendecke <vl@samba.org>2013-10-01 11:21:40 +0000
commitdd004e8193ccdbb94de4c32e301a163f0b6d2d0e (patch)
treeed955a2cbb76ba71f1ebeba359792f87aca5580e /source3
parentfdf8d93ac51d57a91fe51de9bfddf363e1cfab81 (diff)
downloadsamba-dd004e8193ccdbb94de4c32e301a163f0b6d2d0e.tar.gz
samba-dd004e8193ccdbb94de4c32e301a163f0b6d2d0e.tar.bz2
samba-dd004e8193ccdbb94de4c32e301a163f0b6d2d0e.zip
idmap_autorid: add a db_context argument to idmap_autorid_loadconfig()
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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 2b81202767..6b9a472381 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -751,7 +751,8 @@ static NTSTATUS idmap_autorid_db_init(void)
return status;
}
-static struct autorid_global_config *idmap_autorid_loadconfig(TALLOC_CTX * ctx)
+static struct autorid_global_config *idmap_autorid_loadconfig(struct db_context *db,
+ TALLOC_CTX *ctx)
{
TDB_DATA data;
@@ -759,7 +760,7 @@ static struct autorid_global_config *idmap_autorid_loadconfig(TALLOC_CTX * ctx)
unsigned long minvalue, rangesize, maxranges;
NTSTATUS status;
- status = dbwrap_fetch_bystring(autorid_db, ctx, CONFIGKEY, &data);
+ status = dbwrap_fetch_bystring(db, ctx, CONFIGKEY, &data);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("No saved config found\n"));
@@ -937,7 +938,7 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
config->minvalue, config->rangesize, config->maxranges));
/* read previously stored config and current HWM */
- storedconfig = idmap_autorid_loadconfig(talloc_tos());
+ storedconfig = idmap_autorid_loadconfig(autorid_db, talloc_tos());
status = dbwrap_fetch_uint32_bystring(autorid_db, HWM, &hwm);
if (!NT_STATUS_IS_OK(status)) {