# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-django-pam # py-django-pam/Makefile # py-django-pam/distinfo # py-django-pam/pkg-descr # echo c - py-django-pam mkdir -p py-django-pam > /dev/null 2>&1 echo x - py-django-pam/Makefile sed 's/^X//' >py-django-pam/Makefile << '520d87d026b2ffcb9e27b2e07f977b43' X# Created by: Alberto Mijares X# $FreeBSD$ X XPORTNAME= django-pam XPORTVERSION= 2.0.0 XCATEGORIES= devel python XMASTER_SITES= CHEESESHOP XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= amijaresp@gmail.com XCOMMENT= Django pam can be used in an sso (single sign on) environment or just with a single box where you want to log into a django app with your unix login X X# LICENSE= MIT # Ensure this is valid! See ${PORTSDIR}/Mk/bsd.licenses.db.mk. X XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-pam>0:XXX/py-python-pam \ X ${PYTHON_PKGNAMEPREFIX}six>0:XXX/py-six X XUSES= python XUSE_PYTHON= autoplist distutils X X.include 520d87d026b2ffcb9e27b2e07f977b43 echo x - py-django-pam/distinfo sed 's/^X//' >py-django-pam/distinfo << 'c80f8f9960d612777afe614ca320aa82' XTIMESTAMP = 1627610599 XSHA256 (django-pam-2.0.0.tar.gz) = eab4b1b5390405daa091df2d645119f8670c5bbd624b62eba7f858b627a038f2 XSIZE (django-pam-2.0.0.tar.gz) = 15555 c80f8f9960d612777afe614ca320aa82 echo x - py-django-pam/pkg-descr sed 's/^X//' >py-django-pam/pkg-descr << '14e3a467d71b6698fc761dba27b53a63' XDjango PAM X XPyPI Version X XPyPI Wheel X XPython Versions X XLicense X XA Django PAM authentication backend implementation. X XThe MIT License (MIT) X XOverview X XThis is a simple authentication backend that uses the python-pam package. Django XPAM can be used in an SSO (Single Sign On) environment or just with a single box Xwhere you want to log into a Django app with your UNIX login. X XUpdated for Django 3.x. X XProvides X XPAM Authentication Backend X XLogin and Logout Views X XTemplates for both standard and modal authentication. X XSupporting JavaScript and CSS. X XQuick Start X XYou will need to add Django PAM to your INSTALLED_APPS: X XINSTALLED_APPS = [ ... 'django_pam', ] X XNext you will need to add the Django PAM backend to the AUTHENTICATION_BACKENDS: X XAUTHENTICATION_BACKENDS = [ 'django_pam.auth.backends.PAMBackend', X'django.contrib.auth.backends.ModelBackend', ] X XThe user that runs the application needs to be a member of the /etc/shadow file Xgroup, this is usually the web server user. This is necessary so the web server Xcan authenticate other users. To do this run the command below with the proper Xuser: X X$ sudo usermod -a -G shadow X X:3: (INFO/1) Duplicate implicit target name: "django pam". X XComplete Documentation can be found on Read the Docs at: Django PAM X XWWW: https://github.com/cnobile2012/django-pam 14e3a467d71b6698fc761dba27b53a63 exit