Skip to content
Snippets Groups Projects
Commit 348be0b9 authored by Alexandre Ferland's avatar Alexandre Ferland Committed by GitHub
Browse files

Update index.rst

parent 6ae2984b
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,12 @@ required configuration options: ...@@ -31,12 +31,12 @@ required configuration options:
from flask_simpleldap import LDAP from flask_simpleldap import LDAP
app = Flask(__name__) app = Flask(__name__)
ldap = LDAP(app)
app.config['LDAP_BASE_DN'] = 'OU=users,dc=example,dc=org' app.config['LDAP_BASE_DN'] = 'OU=users,dc=example,dc=org'
app.config['LDAP_USERNAME'] = 'CN=user,OU=Users,DC=example,DC=org' app.config['LDAP_USERNAME'] = 'CN=user,OU=Users,DC=example,DC=org'
app.config['LDAP_PASSWORD'] = 'password' app.config['LDAP_PASSWORD'] = 'password'
ldap = LDAP(app)
@app.route('/ldap') @app.route('/ldap')
@ldap.login_required @ldap.login_required
def ldap_protected(): def ldap_protected():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment