A small web utility to change user's LDAP password
  • HTML 53.3%
  • Python 42.5%
  • Dockerfile 4.2%
Find a file
2025-12-13 01:43:45 +02:00
templates Add logging 2025-12-13 00:23:02 +02:00
.dockerignore Dockerize the application 2025-12-13 01:36:35 +02:00
.gitignore Add dotenv configuration 2025-12-13 00:43:02 +02:00
Dockerfile Dockerize the application 2025-12-13 01:36:35 +02:00
image.png Update README.md 2025-12-13 01:43:45 +02:00
README.md Update README.md 2025-12-13 01:43:45 +02:00
requirements.txt Create requirements.txt file 2025-12-13 00:48:02 +02:00
server.py Add dotenv configuration 2025-12-13 00:43:02 +02:00

LDAP passwd

alt text

A small web utility to modify user's password in LDAP directory service. It checks if the user exists in the directory under specified dn and, if the attempted bind was successful, attempts to modify its password.

Getting started

It is recommended to use docker for deployment.

$ docker build -t ldap-passwd .

An example of running the container and binding the web service to port 80:

$ docker run -p 80:8000 -e LDAP_HOST=127.0.0.1 -e LDAP_PORT=389 -e USER_BIND_TMPL="uid=%s,ou=people,dc=example,dc=ee" ldap-passwd

Environment variables for configuration:

  • LDAP_HOST - LDAP server hostname
  • LDAP_PORT - LDAP server port to use
  • USER_BIND_TMPL - distinguished name (dn) template for the user