I am trying to build user authentication in Flask app. The authentication needs to be done using the LDAP server. The documentation given on this
link is not very clear. It asks for the LDAP_USERNAME and LDAP_PASSWORD. Is this same as as username and password for a user? I want to fetch this from the login page which I was going to do using request.forms. :
@app.route('/login')
def login():
user = request.form['user_name']
password = request.form['password']
ldap_authenticate_user(user, password)
Has anyone successfully used the Flask-LDAP using flask-simpleldap ?