Flask-SimpleLDAP depends, and will install for you, recent versions of Flask
(0.12.4 or later) and [pyldap](https://github.com/pyldap/pyldap). Flask-SimpleLDAP is compatible
with and tested on Python 3.5, 3.6 and 3.7.
(0.12.4 or later) and [python-ldap](https://python-ldap.org/).
Please consult the [python-ldap installation instructions](https://www.python-ldap.org/en/latest/installing.html) if you get an error during installation.
Next, add a ``LDAP`` instance to your code and at least the three
required configuration options:
Next, add an ``LDAP`` instance to your code and at least the three
required configuration options. The complete sample from
[examples/basic_auth/app.py](examples/basic_auth/app.py) looks like this:
```python
fromflaskimportFlask
fromflaskimportFlask,g
fromflask_simpleldapimportLDAP
app=Flask(__name__)
#app.config['LDAP_HOST'] = 'ldap.example.org' # defaults to localhost