Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants