From nobody Mon Oct 18 18:07:29 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 712201805A06; Mon, 18 Oct 2021 18:07:29 +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 4HY4bP2jVxz3hCL; Mon, 18 Oct 2021 18:07:29 +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 355FD25256; Mon, 18 Oct 2021 18:07:29 +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 19II7TL8086558; Mon, 18 Oct 2021 18:07:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19II7Tx1086557; Mon, 18 Oct 2021 18:07:29 GMT (envelope-from git) Date: Mon, 18 Oct 2021 18:07:29 GMT Message-Id: <202110181807.19II7Tx1086557@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: 43f214641272 - main - security/py-django-auth-kerberos: Add new port 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: 43f214641272504d6f81c2a5f234ea6916daf104 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=43f214641272504d6f81c2a5f234ea6916daf104 commit 43f214641272504d6f81c2a5f234ea6916daf104 Author: Dan Langille AuthorDate: 2021-10-18 18:06:44 +0000 Commit: Dan Langille CommitDate: 2021-10-18 18:06:44 +0000 security/py-django-auth-kerberos: Add new port Kerberos authentication backend for Django --- security/Makefile | 1 + security/py-django-auth-kerberos/Makefile | 23 +++++++++++++++++++++++ security/py-django-auth-kerberos/distinfo | 3 +++ security/py-django-auth-kerberos/pkg-descr | 23 +++++++++++++++++++++++ 4 files changed, 50 insertions(+) diff --git a/security/Makefile b/security/Makefile index fa4843fb6453..ddea687fb5ad 100644 --- a/security/Makefile +++ b/security/Makefile @@ -899,6 +899,7 @@ SUBDIR += py-dfdatetime SUBDIR += py-dfvfs SUBDIR += py-dfwinreg + SUBDIR += py-django-auth-kerberos SUBDIR += py-docker-pycreds SUBDIR += py-ecdsa SUBDIR += py-ed25519ll diff --git a/security/py-django-auth-kerberos/Makefile b/security/py-django-auth-kerberos/Makefile new file mode 100644 index 000000000000..33a562cdf840 --- /dev/null +++ b/security/py-django-auth-kerberos/Makefile @@ -0,0 +1,23 @@ +# Created by: Dan Langille + +PORTNAME= django-auth-kerberos +PORTVERSION= 1.2.5 +CATEGORIES= security python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Kerberos authentication backend for Django + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +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/distinfo b/security/py-django-auth-kerberos/distinfo new file mode 100644 index 000000000000..f0566190bef2 --- /dev/null +++ b/security/py-django-auth-kerberos/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1634568292 +SHA256 (django-auth-kerberos-1.2.5.tar.gz) = ff5a3838baceddd1bc249795723c64491619823ad6849ec3be4b0fdc214df8e9 +SIZE (django-auth-kerberos-1.2.5.tar.gz) = 2277 diff --git a/security/py-django-auth-kerberos/pkg-descr b/security/py-django-auth-kerberos/pkg-descr new file mode 100644 index 000000000000..c40b8cfece50 --- /dev/null +++ b/security/py-django-auth-kerberos/pkg-descr @@ -0,0 +1,23 @@ +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