/*
* Private data for the module, stored in the ldb_module private data
*/
-struct audit_context {
+struct audit_private {
/*
* Should details of database operations be sent over the
* messaging bus.
const char* operation = NULL;
const struct GUID *unique_session_token = NULL;
const struct ldb_message *message = NULL;
- struct audit_context *ac = talloc_get_type(
- ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private
+ = talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
ldb = ldb_module_get_ctx(module);
json_add_bool(&audit, "performedAsSystem", as_system);
json_add_sid(&audit, "userSid", sid);
json_add_string(&audit, "dn", dn);
- json_add_guid(&audit, "transactionId", &ac->transaction_guid);
+ json_add_guid(&audit,
+ "transactionId",
+ &audit_private->transaction_guid);
json_add_guid(&audit, "sessionId", unique_session_token);
message = dsdb_audit_get_message(request);
{
struct json_object wrapper;
struct json_object audit;
- struct audit_context *ac = talloc_get_type(
- ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private
+ = talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
struct dsdb_extended_replicated_objects *ro = talloc_get_type(
request->op.extended.data,
struct dsdb_extended_replicated_objects);
json_add_version(&audit, REPLICATION_MAJOR, REPLICATION_MINOR);
json_add_int(&audit, "statusCode", reply->error);
json_add_string(&audit, "status", ldb_strerror(reply->error));
- json_add_guid(&audit, "transactionId", &ac->transaction_guid);
+ json_add_guid(&audit,
+ "transactionId",
+ &audit_private->transaction_guid);
json_add_int(&audit, "objectCount", ro->num_objects);
json_add_int(&audit, "linkCount", ro->linked_attributes_count);
json_add_string(&audit, "partitionDN", partition_dn);
const struct tsocket_address *remote = NULL;
const char* action = NULL;
const struct GUID *unique_session_token = NULL;
- struct audit_context *ac = talloc_get_type(
- ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private
+ = talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
ldb = ldb_module_get_ctx(module);
json_add_sid(&audit, "userSid", sid);
json_add_string(&audit, "dn", dn);
json_add_string(&audit, "action", action);
- json_add_guid(&audit, "transactionId", &ac->transaction_guid);
+ json_add_guid(&audit,
+ "transactionId",
+ &audit_private->transaction_guid);
json_add_guid(&audit, "sessionId", unique_session_token);
wrapper = json_new_object();
const struct ldb_message *message = dsdb_audit_get_message(request);
bool password_changed = has_password_changed(message);
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
TALLOC_CTX *ctx = talloc_new(NULL);
}
#ifdef HAVE_JANSSON
if (CHECK_DEBUGLVLC(DBGC_DSDB_AUDIT_JSON, OPERATION_LOG_LVL) ||
- (ac->msg_ctx && ac->send_samdb_events)) {
+ (audit_private->msg_ctx
+ && audit_private->send_samdb_events)) {
struct json_object json;
json = operation_json(module, request, reply);
audit_log_json(
&json,
DBGC_DSDB_AUDIT_JSON,
OPERATION_LOG_LVL);
- if (ac->msg_ctx && ac->send_password_events) {
+ if (audit_private->msg_ctx
+ && audit_private->send_samdb_events) {
audit_message_send(
- ac->msg_ctx,
+ audit_private->msg_ctx,
DSDB_EVENT_NAME,
MSG_DSDB_LOG,
&json);
json_free(&json);
}
if (CHECK_DEBUGLVLC(DBGC_DSDB_PWD_AUDIT_JSON, PASSWORD_LOG_LVL) ||
- (ac->msg_ctx && ac->send_password_events)) {
+ (audit_private->msg_ctx
+ && audit_private->send_password_events)) {
if (password_changed) {
struct json_object json;
json = password_change_json(module, request, reply);
&json,
DBGC_DSDB_PWD_AUDIT_JSON,
PASSWORD_LOG_LVL);
- if (ac->send_password_events) {
+ if (audit_private->send_password_events) {
audit_message_send(
- ac->msg_ctx,
+ audit_private->msg_ctx,
DSDB_PWD_EVENT_NAME,
MSG_DSDB_PWD_LOG,
&json);
const struct ldb_reply *reply)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
TALLOC_CTX *ctx = talloc_new(NULL);
}
#ifdef HAVE_JANSSON
if (CHECK_DEBUGLVLC(DBGC_DSDB_AUDIT_JSON, REPLICATION_LOG_LVL) ||
- (ac->msg_ctx && ac->send_samdb_events)) {
+ (audit_private->msg_ctx && audit_private->send_samdb_events)) {
struct json_object json;
json = replicated_update_json(module, request, reply);
audit_log_json(
&json,
DBGC_DSDB_AUDIT_JSON,
REPLICATION_LOG_LVL);
- if (ac->send_samdb_events) {
+ if (audit_private->send_samdb_events) {
audit_message_send(
- ac->msg_ctx,
+ audit_private->msg_ctx,
DSDB_EVENT_NAME,
MSG_DSDB_LOG,
&json);
int log_level)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
const struct timeval now = timeval_current();
- const int64_t duration = usec_time_diff(&now, &ac->transaction_start);
+ const int64_t duration = usec_time_diff(&now, &audit_private->transaction_start);
TALLOC_CTX *ctx = talloc_new(NULL);
}
#ifdef HAVE_JANSSON
if (CHECK_DEBUGLVLC(DBGC_DSDB_TXN_AUDIT_JSON, log_level) ||
- (ac->msg_ctx && ac->send_samdb_events)) {
+ (audit_private->msg_ctx && audit_private->send_samdb_events)) {
struct json_object json;
json = transaction_json(
action,
- &ac->transaction_guid,
+ &audit_private->transaction_guid,
duration);
audit_log_json(
TRANSACTION_JSON_TYPE,
&json,
DBGC_DSDB_TXN_AUDIT_JSON,
log_level);
- if (ac->send_samdb_events) {
+ if (audit_private->send_samdb_events) {
audit_message_send(
- ac->msg_ctx,
+ audit_private->msg_ctx,
DSDB_EVENT_NAME,
MSG_DSDB_LOG,
&json);
int status)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
const char* reason = dsdb_audit_get_ldb_error_string(module, status);
const int log_level = TRANSACTION_LOG_FAILURE_LVL;
const struct timeval now = timeval_current();
- const int64_t duration = usec_time_diff(&now, &ac->transaction_start);
+ const int64_t duration = usec_time_diff(&now,
+ &audit_private->transaction_start);
TALLOC_CTX *ctx = talloc_new(NULL);
}
#ifdef HAVE_JANSSON
if (CHECK_DEBUGLVLC(DBGC_DSDB_TXN_AUDIT_JSON, log_level) ||
- (ac->msg_ctx && ac->send_samdb_events)) {
+ (audit_private->msg_ctx
+ && audit_private->send_samdb_events)) {
struct json_object json;
json = commit_failure_json(
action,
duration,
status,
reason,
- &ac->transaction_guid);
+ &audit_private->transaction_guid);
audit_log_json(
TRANSACTION_JSON_TYPE,
&json,
DBGC_DSDB_TXN_AUDIT_JSON,
log_level);
- if (ac->send_samdb_events) {
- audit_message_send(ac->msg_ctx,
+ if (audit_private->send_samdb_events) {
+ audit_message_send(audit_private->msg_ctx,
DSDB_EVENT_NAME,
MSG_DSDB_LOG,
&json);
struct ldb_module *module,
struct ldb_request *req)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
struct dsdb_control_transaction_identifier *transaction_id;
int ret;
struct ldb_context *ldb = ldb_module_get_ctx(module);
return ldb_oom(ldb);
}
- transaction_id->transaction_guid = ac->transaction_guid;
+ transaction_id->transaction_guid = audit_private->transaction_guid;
ret = ldb_request_add_control(req,
DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID,
false,
*/
static int log_start_transaction(struct ldb_module *module)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
/*
* We do not log transaction begins
* time so that we can log the transaction duration.
*
*/
- ac->transaction_guid = GUID_random();
- ac->transaction_start = timeval_current();
+ audit_private->transaction_guid = GUID_random();
+ audit_private->transaction_start = timeval_current();
return ldb_next_start_trans(module);
}
*/
static int log_end_transaction(struct ldb_module *module)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
int ret = 0;
/*
* Clear the transaction id inserted by log_start_transaction
*/
- memset(&ac->transaction_guid, 0, sizeof(struct GUID));
+ memset(&audit_private->transaction_guid, 0, sizeof(struct GUID));
return ret;
}
*/
static int log_del_transaction(struct ldb_module *module)
{
- struct audit_context *ac =
- talloc_get_type(ldb_module_get_private(module),
- struct audit_context);
+ struct audit_private *audit_private =
+ talloc_get_type_abort(ldb_module_get_private(module),
+ struct audit_private);
log_transaction(module, "rollback", TRANSACTION_LOG_FAILURE_LVL);
- memset(&ac->transaction_guid, 0, sizeof(struct GUID));
+ memset(&audit_private->transaction_guid, 0, sizeof(struct GUID));
return ldb_next_del_trans(module);
}
{
struct ldb_context *ldb = ldb_module_get_ctx(module);
- struct audit_context *context = NULL;
+ struct audit_private *audit_private = NULL;
struct loadparm_context *lp_ctx
= talloc_get_type_abort(ldb_get_opaque(ldb, "loadparm"),
struct loadparm_context);
bool sdb_events = false;
bool pwd_events = false;
- context = talloc_zero(module, struct audit_context);
- if (context == NULL) {
+ audit_private = talloc_zero(module, struct audit_private);
+ if (audit_private == NULL) {
return ldb_module_oom(module);
}
pwd_events = lpcfg_dsdb_password_event_notification(lp_ctx);
}
if (sdb_events || pwd_events) {
- context->send_samdb_events = sdb_events;
- context->send_password_events = pwd_events;
- context->msg_ctx = imessaging_client_init(context,
- lp_ctx,
- ev);
+ audit_private->send_samdb_events = sdb_events;
+ audit_private->send_password_events = pwd_events;
+ audit_private->msg_ctx
+ = imessaging_client_init(audit_private,
+ lp_ctx,
+ ev);
}
- ldb_module_set_private(module, context);
+ ldb_module_set_private(module, audit_private);
return ldb_next_init(module);
}
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct json_object json;
json_t *audit = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
req = talloc_zero(ctx, struct ldb_request);
reply = talloc_zero(ctx, struct ldb_reply);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct json_object json;
json_t *audit = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
req = talloc_zero(ctx, struct ldb_request);
reply = talloc_zero(ctx, struct ldb_reply);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct dsdb_extended_replicated_objects *ro = NULL;
struct repsFromTo1 *source_dsa = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
source_dsa = talloc_zero(ctx, struct repsFromTo1);
ro = talloc_zero(ctx, struct dsdb_extended_replicated_objects);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct dsdb_extended_replicated_objects *ro = NULL;
struct repsFromTo1 *source_dsa = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
dn = ldb_dn_new(ctx, ldb, DN);
GUID_from_string(SOURCE_DSA, &source_dsa_obj_guid);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
char *line = NULL;
const char *rs = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
req = talloc_zero(ctx, struct ldb_request);
reply = talloc_zero(ctx, struct ldb_reply);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
char *line = NULL;
const char *rs = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
req = talloc_zero(ctx, struct ldb_request);
reply = talloc_zero(ctx, struct ldb_reply);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct tsocket_address *ts = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
tsocket_address_inet_from_strings(ctx, "ip", "127.0.0.1", 0, &ts);
ldb_set_opaque(ldb, "remoteAddress", ts);
{
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct GUID guid;
const char * const GUID = "7130cb06-2062-6a1b-409e-3514c26b1773";
struct ldb_control * control = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(GUID, &guid);
- ac->transaction_guid = guid;
+ audit_private->transaction_guid = guid;
module = talloc_zero(ctx, struct ldb_module);
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
req = talloc_zero(ctx, struct ldb_request);
DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID);
assert_non_null(control);
assert_memory_equal(
- &ac->transaction_guid,
+ &audit_private->transaction_guid,
control->data,
sizeof(struct GUID));
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct dsdb_extended_replicated_objects *ro = NULL;
struct repsFromTo1 *source_dsa = NULL;
TALLOC_CTX *ctx = talloc_new(NULL);
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
source_dsa = talloc_zero(ctx, struct repsFromTo1);
ro = talloc_zero(ctx, struct dsdb_extended_replicated_objects);
struct ldb_module *module = NULL;
struct ldb_request *req = NULL;
struct ldb_reply *reply = NULL;
- struct audit_context *ac = NULL;
+ struct audit_private *audit_private = NULL;
struct dsdb_extended_replicated_objects *ro = NULL;
struct repsFromTo1 *source_dsa = NULL;
ldb = ldb_init(ctx, NULL);
- ac = talloc_zero(ctx, struct audit_context);
+ audit_private = talloc_zero(ctx, struct audit_private);
GUID_from_string(TRANSACTION, &transaction_id);
- ac->transaction_guid = transaction_id;
+ audit_private->transaction_guid = transaction_id;
module = talloc_zero(ctx, struct ldb_module);
module->ldb = ldb;
- ldb_module_set_private(module, ac);
+ ldb_module_set_private(module, audit_private);
dn = ldb_dn_new(ctx, ldb, DN);
GUID_from_string(SOURCE_DSA, &source_dsa_obj_guid);