summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-15 09:09:57 +0200
committerMichael Adam <obnox@samba.org>2012-06-15 12:14:28 +0200
commit8f94ecbb90f3efedc3e379853dd71369d53cb1f7 (patch)
treea93065c80f61e7557a4044b56691ad16213e7a61 /source3/winbindd
parent7f19a5ab52ac6ecb380a49ec14072d0fd501f9db (diff)
downloadsamba-8f94ecbb90f3efedc3e379853dd71369d53cb1f7.tar.gz
samba-8f94ecbb90f3efedc3e379853dd71369d53cb1f7.tar.bz2
samba-8f94ecbb90f3efedc3e379853dd71369d53cb1f7.zip
dbwrap: dbwrap_store_uint32->dbwrap_store_uint32_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_autorid.c2
-rw-r--r--source3/winbindd/idmap_tdb.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index d02f34e573..a890914a47 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -102,7 +102,7 @@ static NTSTATUS idmap_autorid_get_domainrange_action(struct db_context *db,
}
/* store away the new mapping in both directions */
- ret = dbwrap_store_uint32(db, cfg->sid, domainnum);
+ ret = dbwrap_store_uint32_bystring(db, cfg->sid, domainnum);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(1, ("Fatal error while storing new "
"domain->range assignment!\n"));
diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c
index 4c3b4b190a..365d78cafc 100644
--- a/source3/winbindd/idmap_tdb.c
+++ b/source3/winbindd/idmap_tdb.c
@@ -278,7 +278,8 @@ static NTSTATUS idmap_tdb_init_hwm(struct idmap_domain *dom)
}
if (update_uid) {
- status = dbwrap_store_uint32(ctx->db, HWM_USER, dom->low_id);
+ status = dbwrap_store_uint32_bystring(ctx->db, HWM_USER,
+ dom->low_id);
if (!NT_STATUS_IS_OK(status)) {
dbwrap_transaction_cancel(ctx->db);
DEBUG(0, ("Unable to initialise user hwm in idmap "
@@ -288,7 +289,8 @@ static NTSTATUS idmap_tdb_init_hwm(struct idmap_domain *dom)
}
if (update_gid) {
- status = dbwrap_store_uint32(ctx->db, HWM_GROUP, dom->low_id);
+ status = dbwrap_store_uint32_bystring(ctx->db, HWM_GROUP,
+ dom->low_id);
if (!NT_STATUS_IS_OK(status)) {
dbwrap_transaction_cancel(ctx->db);
DEBUG(0, ("Unable to initialise group hwm in idmap "