Skip to content

Commit

Permalink
Print configuration path on load
Browse files Browse the repository at this point in the history
  • Loading branch information
mbish committed Dec 3, 2024
1 parent 7162be3 commit fb5c3d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions login_duo/login_duo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions pam_duo/pam_duo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fb5c3d2

Please sign in to comment.