summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-28 01:41:09 +0200
committerMarian Sigler <m@qjym.de>2012-09-28 01:41:09 +0200
commitbbdc690a1f69c9e7f286a5fbd0cb64403d51c721 (patch)
tree9b8a9f4bcc2989b1b7b134fd0b93311d05a1f3f1 /app.py
parent84546333cae64f9ea0765e3cc36f1f92674a1a08 (diff)
downloadweb-bbdc690a1f69c9e7f286a5fbd0cb64403d51c721.tar.gz
web-bbdc690a1f69c9e7f286a5fbd0cb64403d51c721.tar.bz2
web-bbdc690a1f69c9e7f286a5fbd0cb64403d51c721.zip
move ldap settings from account.py to config
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.py b/app.py
index 4a3a962..4c93ccf 100644
--- a/app.py
+++ b/app.py
@@ -20,8 +20,8 @@ app.all_services = account.SERVICES #TODO: take that from our json file or so
@app.before_request
def ldap_connect():
- g.ldap = account.AccountService(account.LDAP_HOST, account.LDAP_BASE_DN,
- account.LDAP_ADMIN_USER, account.LDAP_ADMIN_PASS, app.all_services)
+ g.ldap = account.AccountService(app.config['LDAP_HOST'], app.config['LDAP_BASE_DN'],
+ app.config['LDAP_ADMIN_USER'], app.config['LDAP_ADMIN_PASS'], app.all_services)
g.user = None