diff --git a/security/py-django-auth-kerberos/Makefile b/security/py-django-auth-kerberos/Makefile index fd038d74fb2e..93809619763c 100644 --- a/security/py-django-auth-kerberos/Makefile +++ b/security/py-django-auth-kerberos/Makefile @@ -1,22 +1,23 @@ -# Created by: Dan Langille +# Created by: Dan Langille PORTNAME= django-auth-kerberos PORTVERSION= 1.2.5 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dvl@FreeBSD.org COMMENT= Kerberos authentication backend for Django LICENSE= MIT RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}kerberos>1.1.10:security/py-kerberos@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes .include diff --git a/security/py-django-auth-kerberos/pkg-descr b/security/py-django-auth-kerberos/pkg-descr index c40b8cfece50..9cf82caadd74 100644 --- a/security/py-django-auth-kerberos/pkg-descr +++ b/security/py-django-auth-kerberos/pkg-descr @@ -1,23 +1,9 @@ -Make sure following settings are configured in settings.py: +Kerberos authentication backend for Django which allows you to easily +specify the realm & service. It can protect against rogue KDC responses +by validating the ticket against the local keytab. -INSTALLED_APPS = ( - ... - 'django_auth_kerberos', - ... -) +It can do case-sensitive matching between Kerberos and database user names. -# kerberos realm and service -KRB5_REALM = 'EXAMPLE.COM' -KRB5_SERVICE = '[hostname]/EXAMPLE.COM' - -# Enabled KDC verification defending against rogue KDC responses -# by validating the ticket against the local keytab. -KRB5_VERIFY_KDC = True - -# Enable case-sensitive matching between Kerberos and database user names -KRB5_USERNAME_MATCH_IEXACT = True - -# redirect url after login -LOGIN_REDIRECT_URL = '/' +It can also accept redirect url to use after login. WWW: https://github.com/02strich/django-auth-kerberos diff --git a/security/py-django-auth-kerberos/pkg-descr b/security/py-django-auth-kerberos/pkg-message similarity index 80% copy from security/py-django-auth-kerberos/pkg-descr copy to security/py-django-auth-kerberos/pkg-message index c40b8cfece50..7a6779b71f64 100644 --- a/security/py-django-auth-kerberos/pkg-descr +++ b/security/py-django-auth-kerberos/pkg-message @@ -1,23 +1,24 @@ -Make sure following settings are configured in settings.py: - INSTALLED_APPS = ( ... 'django_auth_kerberos', ... ) # kerberos realm and service KRB5_REALM = 'EXAMPLE.COM' KRB5_SERVICE = '[hostname]/EXAMPLE.COM' # Enabled KDC verification defending against rogue KDC responses # by validating the ticket against the local keytab. KRB5_VERIFY_KDC = True # Enable case-sensitive matching between Kerberos and database user names KRB5_USERNAME_MATCH_IEXACT = True # redirect url after login LOGIN_REDIRECT_URL = '/' -WWW: https://github.com/02strich/django-auth-kerberos +# enable kerberos auth backends +AUTHENTICATION_BACKENDS = ( + 'django_auth_kerberos.backends.KrbBackend', +)