Skip to content

Commit

Permalink
security/py-django-auth-kerberos: Add pkg-message
Browse files Browse the repository at this point in the history
Move the contents of pkg-descr to pkg-install.
Improve pkg-descr by describing some features.

Reported by:	Mateusz Piotrowski <0mp@FreeBSD.org>
  • Loading branch information
dlangille committed Oct 19, 2021
1 parent 7ff64ba commit 83386c0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
3 changes: 2 additions & 1 deletion 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}
Expand Down
24 changes: 5 additions & 19 deletions 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
24 changes: 24 additions & 0 deletions 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',
)

0 comments on commit 83386c0

Please sign in to comment.