s3:passdb: convert machine_sid to use dbwrap wrapper functions only
authorMichael Adam <obnox@samba.org>
Wed, 24 Aug 2011 22:36:05 +0000 (00:36 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Oct 2011 12:17:57 +0000 (14:17 +0200)
Avoid direct use of the db_record and db_context structs.

source3/passdb/machine_sid.c

index 458ffc619dc702519bc1a1778dc4d8b456bf2178..b242cff6e6141a07bb27e22df64f093471151c17 100644 (file)
@@ -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");
        }