Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
3 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
) |