summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-14 20:26:28 +0200
committerMichael Adam <obnox@samba.org>2012-06-15 12:14:27 +0200
commit737c0a54731803c84f0f29d96dd40ac819aec3e8 (patch)
treede2309feed737fe96ee85cb1f67a946ef792d35d /source3/winbindd
parent9afd4be688429d7bb344087cb3eda876f18e19f9 (diff)
downloadsamba-737c0a54731803c84f0f29d96dd40ac819aec3e8.tar.gz
samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.tar.bz2
samba-737c0a54731803c84f0f29d96dd40ac819aec3e8.zip
dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index f4ea07e613..a9a7e9c71a 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -168,7 +168,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
#endif
DEBUG(0, ("Upgrading winbindd_idmap.tdb from an old version\n"));
- status = dbwrap_fetch_int32(db, "IDMAP_VERSION", &vers);
+ status = dbwrap_fetch_int32_bystring(db, "IDMAP_VERSION", &vers);
if (!NT_STATUS_IS_OK(status)) {
vers = -1;
}
@@ -182,7 +182,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
int32 wm;
- status = dbwrap_fetch_int32(db, HWM_USER, &wm);
+ status = dbwrap_fetch_int32_bystring(db, HWM_USER, &wm);
if (!NT_STATUS_IS_OK(status)) {
wm = -1;
}
@@ -200,7 +200,7 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
return False;
}
- status = dbwrap_fetch_int32(db, HWM_GROUP, &wm);
+ status = dbwrap_fetch_int32_bystring(db, HWM_GROUP, &wm);
if (!NT_STATUS_IS_OK(status)) {
wm = -1;
}
@@ -345,7 +345,7 @@ static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
}
/* check against earlier versions */
- ret = dbwrap_fetch_int32(db, "IDMAP_VERSION", &version);
+ ret = dbwrap_fetch_int32_bystring(db, "IDMAP_VERSION", &version);
if (!NT_STATUS_IS_OK(ret)) {
version = -1;
}