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

Peculiar issue | ImportError: No module named OpenSSL #2

@tgentry1986

Description

@tgentry1986

Hi There,

I have 2 ubuntu servers up and running with pam-websso - one 'websso' and one 'ssh' server.

All dependencies are installed, but when i try to ssh to the 'ssh' server, i get this in /var/log/auth.log;

Mar 31 21:52:27 ip-10-2-144-144 /opt/pam-websso/pam_websso.py[32616]: Traceback (most recent call last):
Mar 31 21:52:27 ip-10-2-144-144 /opt/pam-websso/pam_websso.py[32616]: File "/opt/pam-websso/pam_websso.py", line 7, in
Mar 31 21:52:27 ip-10-2-144-144 /opt/pam-websso/pam_websso.py[32616]: from OpenSSL import SSL
Mar 31 21:52:27 ip-10-2-144-144 /opt/pam-websso/pam_websso.py[32616]: ImportError: No module named OpenSSL

which is really weird, because OpenSSL is installed for both python2 and python3, and works fine if i start a python shell for either version.

Any thoughts as to why it would fail to import the module when running /opt/pam-websso/pam_websso.py from the settings in /etc/pam.d/sshd ?

Ive tried my best to figure it out myself but haven't come up with any conclusive answers!

Thank very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions