From fb5c3d21028e81d89b2dc495c9394ece458b5c04 Mon Sep 17 00:00:00 2001 From: Mark Bishop Date: Tue, 3 Dec 2024 15:14:09 -0500 Subject: [PATCH] Print configuration path on load --- login_duo/login_duo.c | 2 ++ pam_duo/pam_duo.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/login_duo/login_duo.c b/login_duo/login_duo.c index 644bd1e..8389fec 100644 --- a/login_duo/login_duo.c +++ b/login_duo/login_duo.c @@ -142,6 +142,8 @@ do_auth(struct login_ctx *ctx, const char *cmd) config = ctx->config ? ctx->config : DUO_CONF; flags = 0; + duo_syslog(LOG_INFO, "Loading config file %s\n", config); + duo_config_default(&cfg); /* Load our private config. */ diff --git a/pam_duo/pam_duo.c b/pam_duo/pam_duo.c index 0240b3a..d3a2aa0 100644 --- a/pam_duo/pam_duo.c +++ b/pam_duo/pam_duo.c @@ -132,6 +132,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int pam_flags, /* Parse configuration */ config = DUO_CONF; + duo_syslog(LOG_INFO, "Loading config file %s", + config); if(parse_argv(&config, argc, argv) == 0) { return (PAM_SERVICE_ERR); }