Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Doesn't work with pam-python 1.0.7 #17

Open
moschlar opened this issue Jul 2, 2020 · 3 comments
Open

Doesn't work with pam-python 1.0.7 #17

moschlar opened this issue Jul 2, 2020 · 3 comments

Comments

@moschlar
Copy link

moschlar commented Jul 2, 2020

Due to a security fix in pam-python 1.0.7 (https://nvd.nist.gov/vuln/detail/CVE-2019-16729), the Python interpreter can't find installed third-party packages anymore (like requests and the like).

This has already been discussed in the community forum: https://community.privacyidea.org/t/ssh-client-and-pam-module-on-centos-7/

A proposed fix by the author (https://sourceforge.net/p/pam-python/tickets/8/#0001/7b91/dea5/0aab/32b1/34ac/8881/b469) would be to add

import site
site.main()

But maybe there is a nicer solution...

@gregharvey
Copy link

+1 - I needed this on Debian too.

@gregharvey
Copy link

Actually, this fixed things on Debian Buster, but for Debian Bullseye it seems this is just entirely broken. The requests lib isn't there, and they've pulled the python-requests package - along with most other Python 2 packages. So this basically cannot work. What a pity.

@moschlar
Copy link
Author

Debian Bullseye basically doesn't ship most Python 2 packages anymore, but apparently pam_python and this module are not made compatible with Python 3 yet, so - yes, what a pity!

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

No branches or pull requests

2 participants