Skip to content

Commit

Permalink
Merge pull request #205 from vbscott/motd_fix
Browse files Browse the repository at this point in the history
Print out /etc/motd if user is bypassed due to their user group
  • Loading branch information
DuoKristina authored Oct 13, 2021
2 parents 72b0205 + 4c68713 commit b26f9a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions login_duo/login_duo.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ do_auth(struct login_ctx *ctx, const char *cmd)
return (EXIT_FAILURE);
} else if (matched == 0) {
duo_syslog(LOG_INFO, "User %s bypassed Duo 2FA due to user's UNIX group", duouser);
/* Print out /etc/motd file if user is bypassed due to their group */
if (cfg.motd && !headless) {
_print_motd();
}
close_config(&cfg);
return (EXIT_SUCCESS);
}
Expand Down

0 comments on commit b26f9a4

Please sign in to comment.