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 issue #205 #206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bored-engineer
Copy link

Adds support for a prompt= configuration flag with a custom prompt. If not specified, existing prompt/behavior is used.

Adds support for a `prompt=` configuration flag with a custom prompt. If not specified, existing prompt/behavior is used.
@bored-engineer
Copy link
Author

One note on this is that specifying a prompt with more than one printf character (%s) can/would cause problems/crashes. In my opinion we just need to clarify this in the README as there's no valid use-case for that behavior

@klali
Copy link
Member

klali commented Dec 19, 2019

Thanks for your interest here.

I'd like to see this changed to put a default value in cfg->prompt and not have to do conditions every time it's used. You could do this by putting the default template in a const char* and have the cfg pointer default to that. Also please make sure that this functionality is called into by the tests in tests/pam_test.c

Don't forget manpage docs for pam_yubico.8.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants