I am trying to create user authentication in a Flask application. Authentication must be performed using an LDAP server. The documentation provided in this
link is not very clear. He asks LDAP_USERNAMEand LDAP_PASSWORD. Is it the same as the username and password for the user? I want to get this on the login page that I am 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 Flask-LDAP using the -ldldap flag?
source
share