{"id":18847133,"url":"https://github.com/sohalt/pretix-ldap","last_synced_at":"2025-04-14T08:09:24.823Z","repository":{"id":36948034,"uuid":"230471557","full_name":"Sohalt/pretix-ldap","owner":"Sohalt","description":"LDAP authentication backend for pretix","archived":false,"fork":false,"pushed_at":"2024-04-15T12:20:43.000Z","size":37,"stargazers_count":4,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T08:09:18.764Z","etag":null,"topics":["ldap","ldap-authentication","pretix"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sohalt.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-12-27T15:55:33.000Z","updated_at":"2024-08-28T11:22:12.000Z","dependencies_parsed_at":"2024-04-15T12:54:37.834Z","dependency_job_id":null,"html_url":"https://github.com/Sohalt/pretix-ldap","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.1785714285714286,"last_synced_commit":"8ea8a61d8f4a94b23a19ef25da8aaf4a18d564bc"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sohalt%2Fpretix-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sohalt%2Fpretix-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sohalt%2Fpretix-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sohalt%2Fpretix-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sohalt","download_url":"https://codeload.github.com/Sohalt/pretix-ldap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843856,"owners_count":21170492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ldap","ldap-authentication","pretix"],"created_at":"2024-11-08T03:05:23.605Z","updated_at":"2025-04-14T08:09:24.798Z","avatar_url":"https://github.com/Sohalt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pretix LDAP\n==========================\n\nLDAP authentication plugin for `pretix`_.\n\nInstallation\n------------\n\nYou can install the plugin using ::\n\n  $ pip install pretix-ldap\n\nYou need to enable the plugin by including ``pretix_ldap.LDAPAuthBackend`` in the ``auth_backends`` option in your ``pretix.cfg`` (see https://docs.pretix.eu/en/latest/admin/config.html).\n\nYou also need to add a ``[ldap]`` section in your ``pretix.cfg`` to configure the connection to the ldap server.\n\nOptions are:\n\n``bind_url``\n    The url of the ldap server (required)\n    Example: ``ldap://ldap.example.com``\n\n``bind_dn``\n    The dn of the account to use to query the ldap server (required)\n    Example: ``cn=readonly,dc=example,dc=com``\n\n``bind_password``\n    The password of the account to use to query the ldap server (required)\n    Example: ``changeme``\n\n``search_base``\n    The search base (required)\n    Example: ``ou=people,dc=example,dc=com``\n\n``search_filter``\n    Filter to search for users. You can use placeholders in curly braces, which will get populated from form fields of the same name.\n    Default: ``(\u0026(objectClass=inetOrgPerson)(mail={email}))``\n    Example: ``(\u0026(objectClass=inetOrgPerson)(memberOf=cn=pretix,ou=groups,dc=example,dc=com)(mail={email}))``\n\n``email_attr``\n    The name of an attribute that can be used to retrieve the user's email address\n    Default: ``mail``\n\n``unique_attr``\n    The name of a stable attribute that can be used to uniquely identify a user\n    Default: ``dn``\n    Example: ``entryUUID``\n\nExample Deployment\n------------------\n\nAn example deployment using ``docker-compose`` can be found in the ``example`` folder.\n\nAfter running ``docker-compose up`` you should be able to log in at ``http://localhost:80/control`` using the email \"admin@example.com\" and password \"password\".\n\n\nDevelopment setup\n-----------------\n\n1. Make sure that you have a working `pretix development setup`_.\n\n2. Clone this repository, eg to ``local/pretix-ldap``.\n\n3. Activate the virtual environment you use for pretix development.\n\n4. Execute ``python setup.py develop`` within this directory to register this application with pretix's plugin registry.\n\n5. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in\n   the 'plugins' tab in the settings.\n\nRunning CI linter and tests locally\n-----------------------------------\n\n1. `Install nix`_\n\n2. Enter devshell: `nix develop`\n\n3. Build package::\n\n    python -m build\n\n4. Run linter::\n\n    flake8\n\n5. Run tests::\n\n    cp -r dist tests\n\n    cd tests\n\n    pytest\n\n\nLicense\n-------\n\n\nCopyright 2019 sohalt\n\nReleased under the terms of the Apache License 2.0\n\n\n\n.. _pretix: https://github.com/pretix/pretix\n.. _pretix development setup: https://docs.pretix.eu/en/latest/development/setup.html\n.. _Install nix: https://github.com/DeterminateSystems/nix-installer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohalt%2Fpretix-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohalt%2Fpretix-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohalt%2Fpretix-ldap/lists"}