diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-03 16:52:42 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-03 16:52:42 +0000 |
commit | 23c1f2cc6be9926fdfe85e37869ef88f84b9200e (patch) | |
tree | 54630fb2d24346f1e60f00d254e7a73a2ad83833 /reports/brpt/settings.py | |
parent | 6c3e429e7d60ac38e4151f2713511c0f6281652e (diff) | |
download | bcfg2-23c1f2cc6be9926fdfe85e37869ef88f84b9200e.tar.gz bcfg2-23c1f2cc6be9926fdfe85e37869ef88f84b9200e.tar.bz2 bcfg2-23c1f2cc6be9926fdfe85e37869ef88f84b9200e.zip |
added capability for authentication in reports
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2473 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/brpt/settings.py')
-rw-r--r-- | reports/brpt/settings.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/reports/brpt/settings.py b/reports/brpt/settings.py index 63a7132ab..6f490d688 100644 --- a/reports/brpt/settings.py +++ b/reports/brpt/settings.py @@ -63,6 +63,20 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'brpt.urls' +# Authentication Settings +# Use NIS authentication backend defined in backends.py +AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', + 'brpt.backends.NISBackend') +# The NIS group authorized to login to BCFG2's reportinvg system +AUTHORIZED_GROUP = '' +#create login url area: +import django.contrib.auth +django.contrib.auth.LOGIN_URL = '/login' + +SESSION_EXPIRE_AT_BROWSER_CLOSE = True + + + TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates". # Always use forward slashes, even on Windows. |