Skip to content

strifel/pretix-ldap-mails

Repository files navigation

Pretix verify mails against ldap

This is a pretix plugin that can be used to verify the user provided mails against an ldap server. This does not verify the users password.
WARNING: This does verify that the user registering is the owner of the mail address.

Usage

  1. Install python-ldap (pip install python-ldap)
  2. Install pretix-ldap-mails (pip install pretix-ldap-mails)
  3. Configure in admin settings
  4. Enable the plugin for your event.

Dev Setup

Run

To run the plugin in your local dev installation

pip install python-ldap
python setup.py develop
make

Afterwards restart the development server

Build and Upload

You need a local dev setup

python setup.py sdist
twine upload dist/*.tar.gz

Security Conserns

Query

While we use a function of python-ldap to sanitize user input there might still be a possible exploit by inserting custom code into the ldap query. You should definitely use a read only user for ldap. User data should not be exposed as we do not print user data to the end user.

Brutforcing

Via a brutforcing attack this opens up the user to find valid mail adresses in your ldap. This is not different to a password reset feature telling you that it has (not) found an mail address.

About

Verify mails in pretix during Checkout against LDAP

Topics

Resources

License

Stars

Watchers

Forks