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

Non-root on FreeBSD Accepts Good Username but Bad Password #6

Open
git-blame opened this issue May 20, 2016 · 1 comment
Open

Non-root on FreeBSD Accepts Good Username but Bad Password #6

git-blame opened this issue May 20, 2016 · 1 comment

Comments

@git-blame
Copy link

If I'm using this module in FreeBSD as a non-root user, a good username but bad password will pass. Note a bad (non-existent) username will fail as expected. As root, the authentication works correctly.

[vagrant@vagrant-bsd93 ~]$ env LOGNAME=vagrant python -m simplepam // bad pwd: foobar
Password:
True
[vagrant@vagrant-bsd93 ~]$ env LOGNAME=foobar python -m simplepam // bad user, bad pwd
Password:
False

I expected that the bad password should fail. Or if root access is required, then all authentication checks as non-root should fail.

@sebastianriese
Copy link
Collaborator

BSD pam and Linux pam are not compatible, therefore this is not expected to work. (compare https://en.wikipedia.org/wiki/Pluggable_authentication_module).

We should document this more clearly and think about checking the OS and fail hard early if we are not on Linux.

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

No branches or pull requests

2 participants