BSD Ports

security/py-django-auth-kerberos 1.2.5_3 DragonFly

Kerberos authentication backend for Django

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, security
Package size
5.5 KiB, 16.0 KiB installed

Description

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.

It can do case-sensitive matching between Kerberos and database user names.

It can also accept redirect url to use after login.

In the other systems

The newest version among them is 1.2.5, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlysecurity/py-django-auth-kerberos1.2.5_3 newestnone known-[email protected]-
FreeBSDsecurity/py-django-auth-kerberos1.2.5_3 newestnone known-[email protected]-
HardenedBSDsecurity/py-django-auth-kerberos1.2.5_3 newestno data-[email protected]-
GhostBSDsecurity/py-django-auth-kerberos1.2.5_3 newestno data-[email protected]-

Install

Binary package:

pkg install py311-django-auth-kerberos

From DPorts:

cd /usr/dports/security/py-django-auth-kerberos && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

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',
)