git: 83386c08b80f - main - security/py-django-auth-kerberos: Add pkg-message
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Oct 2021 13:38:30 UTC
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=83386c08b80f770775f9da1679a05a297b829d7f commit 83386c08b80f770775f9da1679a05a297b829d7f Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2021-10-19 13:33:56 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2021-10-19 13:38:25 +0000 security/py-django-auth-kerberos: Add pkg-message Move the contents of pkg-descr to pkg-install. Improve pkg-descr by describing some features. Reported by: Mateusz Piotrowski <0mp@FreeBSD.org> --- security/py-django-auth-kerberos/Makefile | 3 ++- security/py-django-auth-kerberos/pkg-descr | 24 +++++------------------- security/py-django-auth-kerberos/pkg-message | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 20 deletions(-) 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,7 +1,8 @@ -# Created by: Dan Langille<dvl@freebsd.org> +# Created by: Dan Langille <dvl@freebsd.org> PORTNAME= django-auth-kerberos PORTVERSION= 1.2.5 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 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-message b/security/py-django-auth-kerberos/pkg-message new file mode 100644 index 000000000000..7a6779b71f64 --- /dev/null +++ b/security/py-django-auth-kerberos/pkg-message @@ -0,0 +1,24 @@ +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 = '/' + +# enable kerberos auth backends +AUTHENTICATION_BACKENDS = ( + 'django_auth_kerberos.backends.KrbBackend', +)