Skip to main content

LDAP support for Kinto

Project description

kinto-ldap

travis Coverage

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.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kinto-ldap-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

kinto_ldap-0.3.0-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kinto-ldap-0.3.0.tar.gz.

File metadata

  • Download URL: kinto-ldap-0.3.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kinto-ldap-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5adc1167b255868ba854f8457166f9ae20ba863633bd334b7c18cea105f055d3
MD5 d33261e51fdb9cb58494112bd431fe40
BLAKE2b-256 83c96d15d65549767a3413eddc3b0ec8b6aaf301ac35881261d02dff61e85edf

See more details on using hashes here.

File details

Details for the file kinto_ldap-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kinto_ldap-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 150d4913e20fb5feb1564a57d8940a70730c1bdc30f59d3339f064a020d60f6f
MD5 929a8c006aa44f3967702926b32ff901
BLAKE2b-256 e3f7ef04c184a13d9af5ca6a70c935a839f41f44e03ac34db6025416a0616dda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page