From nobody Tue Oct 19 13:38:30 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E2E981808855; Tue, 19 Oct 2021 13:38:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HYZZZ5ymvz4lTT; Tue, 19 Oct 2021 13:38:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A6E5515265; Tue, 19 Oct 2021 13:38:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19JDcUt6049760; Tue, 19 Oct 2021 13:38:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19JDcUn4049759; Tue, 19 Oct 2021 13:38:30 GMT (envelope-from git) Date: Tue, 19 Oct 2021 13:38:30 GMT Message-Id: <202110191338.19JDcUn4049759@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: 83386c08b80f - main - security/py-django-auth-kerberos: Add pkg-message List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 83386c08b80f770775f9da1679a05a297b829d7f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=83386c08b80f770775f9da1679a05a297b829d7f commit 83386c08b80f770775f9da1679a05a297b829d7f Author: Dan Langille AuthorDate: 2021-10-19 13:33:56 +0000 Commit: Dan Langille 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 +# Created by: Dan Langille 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', +)