From 23c1f2cc6be9926fdfe85e37869ef88f84b9200e Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Fri, 3 Nov 2006 16:52:42 +0000 Subject: added capability for authentication in reports git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2473 ce84e21b-d406-0410-9b95-82705330c041 --- reports/brpt/settings.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'reports/brpt/settings.py') 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. -- cgit v1.2.3-1-g7c22