LAMa was developed for the student representation of the University of Bamberg in order to guarantee a simple account administration of the StuVe accounts. It should offer a simpler alternative to the Keycloak account management tool.
The tool is based on the Python framework django and uses the packages django-auth-ldap, django-ldapdb to connect to ldap.
- clone or unzip repo
docker-compose builddocker-compose run ldap shchown ldap:ldap -R /var/lib/openldap/docker-compose up -ddocker-compose exec lama shpython3 manage.py makemigrations account_helperpython3 manage.py migratepython3 manage.py createsuperuser
docker-compose logs -f lama(Display server logs)
phpldapadmin was started to manage LDAP. This is available under localhost:8080. The default password is secret.
LAMa can be reached under localhost:8888.
After the initial setup only steps 3, 5 are necessary.
Important! first start without volumes line
- ./mail_templates:/lama/templates/mails
- copy
docker-compose.prod.ymlto your favorite directory - comment line
- ./mail_templates:/lama/templates/mails docker-compose up -ddocker cp <dir>_lama_1:/lama/templates/mails ./mail_templatesdocker-compose downand uncumment line- ./mail_templates:/lama/templates/mailsdocker-compose up -d- Jump into the running container:
docker-compse exec lama sh- Make migrations:
python3 manage.py makemigrations account_helper - Make migrations:
python3 manage.py migrate account_helper - Create superuser:
python3 manage.py createsuperuser
- Make migrations:
- Update copied templates (files or in gui under
Einstellungenwith the super admin account)
- Bootstrap4 (MIT)
- jquery (MIT)
- dataTables (MIT)
- Django (BSD)
- django-auth-ldap (BSD 2 Clause)
- django-ldapdb (BSD 2 Clause)
- jinja2 (BSD 3 Clause)