diff --git a/backend/src/app.py b/backend/src/app.py index 874c772..0c7aafa 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -1,7 +1,15 @@ import logging +import configparser from flask import Flask, render_template from forms import UserLookupForm +config = configparser.ConfigParser() +config.read('config.ini') + +LDAP_SERVER = config.get('LDAP', 'host') +LDAP_BIND_DN = config.get('LDAP', 'bind_dn') +LDAP_PASSWORD = config.get('LDAP', 'bind_password') + app = Flask(__name__) app.logger.setLevel(logging.INFO)