Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

LDAP authentication backend for pretix

Project description

LDAP authentication plugin for pretix.


You can install the plugin using

$ pip install pretix-ldap

You need to enable the plugin by including pretix_ldap.LDAPAuthBackend in the auth_backends option in your pretix.cfg (see

You also need to add a [ldap] section in your pretix.cfg to configure the connection to the ldap server.

Options are:

The url of the ldap server (required)
The dn of the account to use to query the ldap server (required)
The password of the account to use to query the ldap server (required)
The search base (required)
Filter to search for users. You can use placeholders in curly braces, which will get populated from form fields of the same name. Default: (&(objectClass=inetOrgPerson)(mail={email}))
The name of an attribute that can be used to retrieve the user’s email address Default: mail

Example Deployment

An example deployment using docker-compose can be found in the example folder.

After running docker-compose up you should be able to log in at http://localhost:80/control using the email “” and password “password”.

Development setup

  1. Make sure that you have a working pretix development setup.
  2. Clone this repository, eg to local/pretix-ldap.
  3. Activate the virtual environment you use for pretix development.
  4. Execute python develop within this directory to register this application with pretix’s plugin registry.
  5. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.


Copyright 2019 sohalt

Released under the terms of the Apache License 2.0

Project details

Download files

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

Files for pretix-ldap, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pretix_ldap-0.0.5-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pretix-ldap-0.0.5.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page