summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/account_pol.c3
-rw-r--r--source3/passdb/pdb_tdb.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/passdb/account_pol.c b/source3/passdb/account_pol.c
index 9c6f40107a..fa2252f1a7 100644
--- a/source3/passdb/account_pol.c
+++ b/source3/passdb/account_pol.c
@@ -266,7 +266,8 @@ bool init_account_policy(void)
}
if (version != DATABASE_VERSION) {
- status = dbwrap_store_uint32(db, vstring, DATABASE_VERSION);
+ status = dbwrap_store_uint32_bystring(db, vstring,
+ DATABASE_VERSION);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("dbwrap_store_uint32 failed: %s\n",
nt_errstr(status)));
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 43e561bd93..e77ab8f1a7 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -347,7 +347,7 @@ static bool tdbsam_upgrade_next_rid(struct db_context *db)
rid = BASE_RID;
}
- status = dbwrap_store_uint32(db, NEXT_RID_STRING, rid);
+ status = dbwrap_store_uint32_bystring(db, NEXT_RID_STRING, rid);
if (!NT_STATUS_IS_OK(status)) {
return false;
}