webLDAP enables users to access their LDAP accounts and eases the management of such accounts by administrators.
The project is called webldap and the only application in it is main.
Main files:
webldap/
settings.py: project settings
local_settings.sample.py: sample settings
local_settings.docker.py: Docker-specific settings
main/
views.py: view functions (no class-based views)
static/: static content
See app/requirements.txt for what needs to be installed first.
-
In
app/webldap, copylocal_settings.sample.pytolocal_settings.pyand edit the latter with your settings. -
Create the database:
python manage.py migrate -
Configure your web server, or just run
python manage.py runserverif you are testing the software.
You need both Docker and docker-compose. It is recommended you get familiar with Docker before using it for this project.
-
Copy
secret.sample.ymltosecret.ymland edit it with the password you want to use. -
In
app/webldap, copylocal_settings.docker.pytolocal_settings.pyand edit the secret key and the password. -
To initialize the LDAP database and start the server, run:
docker-compose run ldap /usr/bin/slapd-init docker-compose upIt should then be running on
http://localhost:8000.
To take modifications into account:
docker-compose rm -f
docker-compose build
docker-compose up
To reset the LDAP database:
docker-compose rm -f
docker-compose run ldap /usr/bin/slapd-init
docker-compose up
If slapd crashes when it starts, try to raise the available RAM on your development machine to at least 1 Gio.
webldap is licensed under the MIT license. For more information, see the LICENSE file.
You are welcome to contribute to this project, preferably by pull requests or email.