Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-interactive sessions when using groups option (Issue #206) #210

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

mldailey
Copy link
Contributor

Issue number being addressed

Fixes #206

Summary of the change

Detect and set the headless variable earlier in do_auth() so that motd is not printed in non-interactive sessions.

Test Plan

Create a login_duo.conf file using the groups option and motd=yes. Log in as a user not in the specified group, both in an interactive session (i.e. ssh) and non-interactive (i.e. sftp). In the interactive session, motd should be printed. In the non-interactive session, nothing is printed, so the session is not broken by unexpected output.

@mbish mbish merged commit cc6bccf into duosecurity:master Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-interactive sessions broken when groups config option is used and motd printed
2 participants