master
q3k 2013-09-01 14:42:49 +02:00
parent f56552f9d2
commit 74d8dba84c
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ def connect_to_ldap():
conn = ldap.initialize(app.config['LDAP_URL'])
conn.start_tls_s()
conn.simple_bind(app.config['LDAP_BIND_DN'], app.config['LDAP_BIND_PASSWORD'])
return conn
@app.route('/', methods=['GET'])
def form():