summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-25 00:36:05 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:57 +0200
commit8b4dd99dae73462e019d160c94b9a1e92f30eec4 (patch)
tree1ad033c2ec563852e1988316fd14a7fd9337bacb
parenta91f06a7226812ec5725b05dede78c9f89e315b5 (diff)
downloadsamba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.tar.gz
samba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.tar.bz2
samba-8b4dd99dae73462e019d160c94b9a1e92f30eec4.zip
s3:passdb: convert machine_sid to use dbwrap wrapper functions only
Avoid direct use of the db_record and db_context structs.
-rw-r--r--source3/passdb/machine_sid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/machine_sid.c b/source3/passdb/machine_sid.c
index 458ffc619d..b242cff6e6 100644
--- a/source3/passdb/machine_sid.c
+++ b/source3/passdb/machine_sid.c
@@ -204,16 +204,16 @@ struct dom_sid *get_global_sam_sid(void)
smb_panic("could not open secrets db");
}
- if (db->transaction_start(db) != 0) {
+ if (dbwrap_transaction_start(db) != 0) {
smb_panic("could not start transaction on secrets db");
}
if (!(global_sam_sid = pdb_generate_sam_sid())) {
- db->transaction_cancel(db);
+ dbwrap_transaction_cancel(db);
smb_panic("could not generate a machine SID");
}
- if (db->transaction_commit(db) != 0) {
+ if (dbwrap_transaction_commit(db) != 0) {
smb_panic("could not start commit secrets db");
}