kinto-ldap
Validate Basic Auth provided user login and password with an LDAP server.
Dependencies
Before installing you will need the following system dependencies:
On Debian based systems:
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
On RPM based systems:
sudo yum install openldap-devel openssl-devel python-devel
Installation
Install the Python package:
pip install kinto-ldap
Include the package in the project configuration:
kinto.includes = kinto_ldap
And configure authentication policy using pyramid_multiauth formalism:
multiauth.policies = ldap
By default, it will rely on the cache configured in Kinto.
Configuration
multiauth.policy.ldap.use = kinto_ldap.authentication.LDAPBasicAuthAuthenticationPolicy kinto.ldap.cache_ttl_seconds = 30 kinto.ldap.endpoint = ldap://ldap.prod.mozaws.net # kinto.ldap.bind_dn = uid=read_user,ou=logins,dc=mozilla # kinto.ldap.bind_password = user_password
If necessary, override default values for authentication policy:
# multiauth.policy.ldap.realm = Realm
# kinto.ldap.base_dn = dc=mozilla
# kinto.ldap.filters = (mail={mail})
# kinto.ldap.pool_size = 10
# kinto.ldap.pool_retry_max = 3
# kinto.ldap.pool_retry_delay = .1
# kinto.ldap.pool_timeout = 30
CHANGELOG
This document describes changes between each past release.
0.3.1 (2017-03-10)
Bug fixes
Fix support with Kinto 6 and Python 3. (#18)
0.3.0 (2016-11-23)
Support login from multiple DN from the same LDAP server (#16)
0.2.1 (2016-11-03)
Bug fixes
Fix heartbeat that would always return False
0.2.0 (2016-11-02)
Set default value for multiauth.policy.ldap.use (fixes #3)
Add the plugin version in the capability.
New features
Add connection pool settings (fixes #10)
Bug fixes
Fix heartbeat when server is unreachable (fixes #8)
Returns None and log exception if LDAP backend cannot be reached (fixes #9)
0.1.0 (2016-06-27)
Basic Auth Authentication for LDAP.
Contributors
Rémy Hubscher <rhubscher@mozilla.com>
Tarek Ziade <tarek@mozilla.com>
Metadata
Release files for kinto-ldap 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kinto-ldap-0.3.1.tar.gz | 9.0 kB | Without provenance | Details for kinto-ldap-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kinto_ldap-0.3.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for kinto_ldap-0.3.1-py2.py3-none-any.whl |
Total release size: 19.8 kB
Release files / kinto-ldap-0.3.1.tar.gz
| Download URL | kinto-ldap-0.3.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb700ef7f438cfa1212b84bfa3751dc831ee5d88f163077cfc33707324b433b4
|
|
BLAKE2b-256 checksum How to use checksums |
b9d6076274eee0a976b3e1de35e46faf9812c9473ca27fc3b015713d72c5a3e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kinto_ldap-0.3.1-py2.py3-none-any.whl
| Download URL | kinto_ldap-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f04e083efc5c5bef590fa87770431e8a885ff46755e9019c00f15464a35dd3d1
|
|
BLAKE2b-256 checksum How to use checksums |
251ba5358660d615c88593894563331842ba9df3700deb109c14692c4b475ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kinto-ldap 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.