From 372fe800cd894b891c6dca5098c18e9afa4ddddf Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 13 Dec 2020 19:06:22 +0100 Subject: [PATCH] fill in template values for settings --- uncloud/settings.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/uncloud/settings.py b/uncloud/settings.py index 9a9f0a6..2e1db55 100644 --- a/uncloud/settings.py +++ b/uncloud/settings.py @@ -170,7 +170,6 @@ OPENNEBULA_URL = 'https://opennebula.example.com:2634/RPC2' # user:pass for accessing opennebula OPENNEBULA_USER_PASS = 'user:password' - # Stripe (Credit Card payments) STRIPE_KEY="" STRIPE_PUBLIC_KEY="" @@ -189,6 +188,18 @@ UNCLOUD_ADMIN_NAME = "uncloud-admin" LOGIN_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/' +# replace these in local_settings.py +AUTH_LDAP_SERVER_URI = "ldaps://ldap1.example.com,ldaps://ldap2.example.com" +AUTH_LDAP_BIND_DN="uid=django,ou=system,dc=example,dc=com" +AUTH_LDAP_BIND_PASSWORD="a very secure ldap password" +AUTH_LDAP_USER_SEARCH = LDAPSearch("dc=example,dc=com", + ldap.SCOPE_SUBTREE, + "(uid=%(user)s)") + +# where to create customers +LDAP_CUSTOMER_DN="ou=customer,dc=example,dc=com" + + # Overwrite settings with local settings, if existing try: from uncloud.local_settings import *