You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rico ba5b75e45c Merge pull request 'adjust email value to external-email' (#1) from adjust_mail into main 3 weeks ago
ldap_frontend messages: update message labels and translation file 3 weeks ago
.gitignore add translation to german 1 month ago
LICENCE add LICENCE and 1 month ago add translation to german 1 month ago
requirements.txt add translation to german 1 month ago

ldap frontend for Queeres Zentrum Wiesbaden

Licenced under CC BY-NC-SA 4.0. See LICENCE file for full licence text.


All instructions assume you have the requirements already installed.

Adding translations

Replace <LANG> with your intended language.

  1. run pybabel init -i messages.pot -d translations -l <LANG>
  2. edit translations/<LANG>/LC_MESSAGES/messages.po
  3. For testing, run pybabel compile -d translations

If you changed the translation strings, make sure to run pybabel extract -F babel.cfg -o messages.pot . and pybabel update -i messages.pot -d translations first.

Setting it up

After deploying the repository, change to ldap_frontend directory, then run pybabel compile -d translations.


    "ldap": {
        "server": "ldap://localhost:389",
        "username": "uid=ldap-frontend,ou=Applications,dc=qzwi,dc=de",
        "password": "my_super_secure_password",
        "group_base": "ou=Groups,dc=qzwi,dc=de",
        "user_base": "ou=Users,dc=qzwi,dc=de"
    "template": {
        "group_admin": "(&(objectclass=inetOrgPerson)(uid={})(memberOf=ou=qzwi-admins,ou=Groups,dc=qzwi,dc=de))",
        "group_dn": "ou={},ou=Groups,dc=qzwi,dc=de",
        "group_members": "(&(objectclass=inetOrgPerson)(memberOf=ou={},ou=Groups,dc=qzwi,dc=de))",
        "group_nonmembers": "(&(objectclass=inetOrgPerson)(!(memberOf=ou={},ou=Groups,dc=qzwi,dc=de)))",
        "user_dn": "uid={},ou=Users,dc=qzwi,dc=de",
        "user_search": "(&(objectclass=inetOrgPerson)(uid={}))"
    "title": "Usermanagement QZWI"


Description=LDAP frontend
Requires=slapd.service # remove this if your server is not running on same machine

ExecStart=/opt/ldap-frontend/venv/bin/gunicorn --threads 4 --bind 'ldap_frontend:app'