Revert "ldb_transaction_active after commit assert in authsam_logon_success_accounting"
[metze/samba/wip.git] / source4 / auth / sam.c
index 881568c9fd8bd1e79cf3f5b61f8f0531acfab7e9..2543c3566e2948e3936932f0becb05b53e37963a 100644 (file)
@@ -1557,7 +1557,6 @@ NTSTATUS authsam_search_account(TALLOC_CTX *mem_ctx, struct ldb_context *sam_ctx
        return NT_STATUS_OK;
 }
 
-int ldb_transaction_active(struct ldb_context *ldb);
 
 /* Reset the badPwdCount to zero and update the lastLogon time. */
 NTSTATUS authsam_logon_success_accounting(struct ldb_context *sam_ctx,
@@ -1883,13 +1882,6 @@ exit:
                        ldb_dn_get_linearized(msg->dn));
                return NT_STATUS_INTERNAL_ERROR;
        }
-       ret = ldb_transaction_active(sam_ctx);
-       if (ret != 0) {
-               DBG_ERR("Transaction still active(%d) %s\n",
-                       ret, ldb_dn_get_linearized(msg->dn));
-               SMB_ASSERT(ldb_transaction_active(sam_ctx) == 0);
-       }
-
        return status;
 
 error: