Skip to content
Snippets Groups Projects
Commit d0f462f0 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

Task #10875 - updated some config

parent 2d461431
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ echo "---"
echo "! This is for testing only, properly deploy in Apache for production use!"
echo "---"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
python $DIR/../lib/python2.7/site-packages/lofar/triggerservices/manage.py runserver
python $DIR/../lib64/python2.7/site-packages/lofar/triggerservices/manage.py runserver 0.0.0.0:8000
SECRET_KEY = 'c0m_v*ghv5-^+xy@dm7-skg5d7#q(q+*pl!@rie)6+h$ln!zoi'
SECRET_KEY = "<redacted>"
AUTH_LDAP_SERVER_URI = "ldaps://webportal.astron.nl:30636"
#AUTH_LDAP_SERVER_URI = "ldaps://dop225.astron.nl:636"
#AUTH_LDAP_SERVER_URI = "ldap://10.87.2.225"
AUTH_LDAP_USER_DN_TEMPLATE="uid=%(user)s,ou=Users,o=lofar,c=eu?cn"
AUTH_LDAP_USER_DN_TEMPLATE="cn=%(user)s,ou=Users,o=lofar,c=eu"
AUTH_LDAP_BIND_DN = "cn=ltadownload,o=services"
AUTH_LDAP_BIND_DN = "<redacted>"
AUTH_LDAP_BIND_PASSWORD = "<redacted>"
......@@ -146,29 +146,12 @@ REST_FRAMEWORK = {
'rest_framework.authentication.SessionAuthentication',
),
#'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.AllowAny',), # todo: CHANGE FOR PRODUCTION TO --> IsAuthenticated
#'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
#'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.AllowAny',),
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
'PAGE_SIZE': 10,
}
# LDAP DEBUG:
#import logging, logging.handlers
#logfile = "/tmp/django-ldap-debug.log"
#my_logger = logging.getLogger('django_auth_ldap')
#my_logger.setLevel(logging.DEBUG)
#handler = logging.handlers.RotatingFileHandler(
# logfile, maxBytes=1024 * 500, backupCount=5)
#my_logger.addHandler(handler)
#import ldap
#print "---"
#server = 'ldap://10.87.2.225'
#user_dn = credentials.AUTH_LDAP_BIND_DN
#password = credentials.AUTH_LDAP_BIND_PASSWORD
#con = ldap.initialize(server)
#print "---"
#con.simple_bind_s(user_dn, password)
#print "---"
#AUTH_LDAP_GLOBAL_OPTIONS = { ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER }
#AUTH_LDAP_CONNECTION_OPTIONS = { ldap.OPT_X_TLS_REQUIRE_CERT : ldap.OPT_X_TLS_NEVER }
AUTH_LDAP_SERVER_URI = credentials.AUTH_LDAP_SERVER_URI
AUTH_LDAP_BIND_DN = credentials.AUTH_LDAP_BIND_DN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment