From 348be0b9e8197c238aa71273437b7a34007a6c46 Mon Sep 17 00:00:00 2001 From: Alexandre Ferland <admiralobvious@users.noreply.github.com> Date: Thu, 8 Sep 2016 14:00:03 -0400 Subject: [PATCH] Update index.rst --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index eacb4dd..1ab6e66 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -31,12 +31,12 @@ required configuration options: from flask_simpleldap import LDAP app = Flask(__name__) - ldap = LDAP(app) - 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_PASSWORD'] = 'password' + ldap = LDAP(app) + @app.route('/ldap') @ldap.login_required def ldap_protected(): -- GitLab