Skip to content

Commit

Permalink
fix custom sodar pam auth (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Oct 1, 2024
1 parent 11c8b5d commit f25c3e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ RUN pip3 install j2cli

# Install Python PAM support
RUN apt-get install -y libpam-python pamtester
# NOTE: Python2 needed for custom PAM module
RUN apt-get install -y python python-dev
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
RUN python2 get-pip.py
RUN pip install requests

# Copy scripts and templates
COPY docker-entrypoint.sh files/irods_login.sh \
Expand Down
3 changes: 3 additions & 0 deletions docker/templates/pam_sodar.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LDAP/AD server is not available.
__author__ = 'Mikko Nieminen'

import os
import site
# HACK to allow libpam-python to find 3rd party packages
site.addsitedir('/usr/local/lib/python2.7/site-packages')
import requests


Expand Down

0 comments on commit f25c3e5

Please sign in to comment.