summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-25 00:38:51 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:57 +0200
commit8b4845bd75805e4bcb9082c798f8d4a48ad24e20 (patch)
tree8b244a996f7351db76cda38af2207dfcd87616ec
parent8b4dd99dae73462e019d160c94b9a1e92f30eec4 (diff)
downloadsamba-8b4845bd75805e4bcb9082c798f8d4a48ad24e20.tar.gz
samba-8b4845bd75805e4bcb9082c798f8d4a48ad24e20.tar.bz2
samba-8b4845bd75805e4bcb9082c798f8d4a48ad24e20.zip
s3:passdb: convert account_pol to use dbwrap wrapper functions only
Avoid direct use of the db_record and db_context structs.
-rw-r--r--source3/passdb/account_pol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/account_pol.c b/source3/passdb/account_pol.c
index a491c27a9d..9b6e4f6c63 100644
--- a/source3/passdb/account_pol.c
+++ b/source3/passdb/account_pol.c
@@ -238,7 +238,7 @@ bool init_account_policy(void)
/* handle a Samba upgrade */
- if (db->transaction_start(db) != 0) {
+ if (dbwrap_transaction_start(db) != 0) {
DEBUG(0, ("transaction_start failed\n"));
TALLOC_FREE(db);
return false;
@@ -249,7 +249,7 @@ bool init_account_policy(void)
/*
* Race condition
*/
- if (db->transaction_cancel(db)) {
+ if (dbwrap_transaction_cancel(db)) {
smb_panic("transaction_cancel failed");
}
return true;
@@ -287,7 +287,7 @@ bool init_account_policy(void)
}
}
- if (db->transaction_commit(db) != 0) {
+ if (dbwrap_transaction_commit(db) != 0) {
DEBUG(0, ("transaction_commit failed\n"));
TALLOC_FREE(db);
return false;
@@ -296,7 +296,7 @@ bool init_account_policy(void)
return True;
cancel:
- if (db->transaction_cancel(db)) {
+ if (dbwrap_transaction_cancel(db)) {
smb_panic("transaction_cancel failed");
}
TALLOC_FREE(db);