dsdb audit logging: remove HAVE_JANSSON from audit_log
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 13 Jul 2018 01:33:59 +0000 (13:33 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 25 Jul 2018 04:29:50 +0000 (06:29 +0200)
This modules is ADDC only and JANSSON is required for the ADDC builds,
so the ifdef is no longer necessary.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/audit_log.c

index 81d4931da8ea36adb0f648f306a35d9813cb1c58..44726b65a3bb8f58b0093f5a6706b763cefbe163 100644 (file)
@@ -163,8 +163,6 @@ static const char *get_password_action(
        }
 }
 
-
-#ifdef HAVE_JANSSON
 /*
  * @brief generate a JSON object detailing an ldb operation.
  *
@@ -710,7 +708,6 @@ failure:
        return wrapper;
 }
 
-#endif
 /*
  * @brief Print a human readable log line for a password change event.
  *
@@ -1132,7 +1129,6 @@ static void log_standard_operation(
                        TALLOC_FREE(entry);
                }
        }
-#ifdef HAVE_JANSSON
        if (CHECK_DEBUGLVLC(DBGC_DSDB_AUDIT_JSON, OPERATION_LOG_LVL) ||
                (audit_private->msg_ctx
                 && audit_private->send_samdb_events)) {
@@ -1174,7 +1170,6 @@ static void log_standard_operation(
                        json_free(&json);
                }
        }
-#endif
        TALLOC_FREE(ctx);
 }
 
@@ -1215,7 +1210,6 @@ static void log_replicated_operation(
                        REPLICATION_LOG_LVL);
                TALLOC_FREE(entry);
        }
-#ifdef HAVE_JANSSON
        if (CHECK_DEBUGLVLC(DBGC_DSDB_AUDIT_JSON, REPLICATION_LOG_LVL) ||
                (audit_private->msg_ctx && audit_private->send_samdb_events)) {
                struct json_object json;
@@ -1234,7 +1228,6 @@ static void log_replicated_operation(
                }
                json_free(&json);
        }
-#endif
        TALLOC_FREE(ctx);
 }
 
@@ -1302,7 +1295,6 @@ static void log_transaction(
                        log_level);
                TALLOC_FREE(entry);
        }
-#ifdef HAVE_JANSSON
        if (CHECK_DEBUGLVLC(DBGC_DSDB_TXN_AUDIT_JSON, log_level) ||
                (audit_private->msg_ctx && audit_private->send_samdb_events)) {
                struct json_object json;
@@ -1324,7 +1316,6 @@ static void log_transaction(
                }
                json_free(&json);
        }
-#endif
        TALLOC_FREE(ctx);
 }
 
@@ -1372,7 +1363,6 @@ static void log_commit_failure(
                        TRANSACTION_LOG_FAILURE_LVL);
                TALLOC_FREE(entry);
        }
-#ifdef HAVE_JANSSON
        if (CHECK_DEBUGLVLC(DBGC_DSDB_TXN_AUDIT_JSON, log_level) ||
                (audit_private->msg_ctx
                 && audit_private->send_samdb_events)) {
@@ -1396,7 +1386,6 @@ static void log_commit_failure(
                }
                json_free(&json);
        }
-#endif
        TALLOC_FREE(ctx);
 }