Simple tool to manage openldap servers
2.0K
A modern Python application for LDAP directory management with both terminal and web interfaces.

There are two main installation way:
# Run with Docker
docker run --rm -ti \
-e "LDAPCP__AUTHLDAP__uri=ldap://your-ldap-server:389" \
-e "LDAPCP__AUTHLDAP__bind_dn=cn=admin,dc=example,dc=com" \
-e "LDAPCP__AUTHLDAP__bind_pass=your-password" \
mrjk78/ldap-control-panel:main ldapcp-tui
# Or serve web interface
docker run --rm -ti \
-e "LDAPCP__AUTHLDAP__uri=ldap://your-ldap-server:389" \
-e "LDAPCP__AUTHLDAP__bind_dn=cn=admin,dc=example,dc=com" \
-e "LDAPCP__AUTHLDAP__bind_pass=your-password" \
-p 8000:8000 \
mrjk78/ldap-control-panel:main ldapcp-serve --host 0.0.0.0 --port 8000
# Create docker-compose.yml
cat > docker-compose.yml << EOF
version: '3.8'
services:
lcp:
image: mrjk78/ldap-control-panel:main
environment:
- LDAPCP__AUTHLDAP__uri=ldap://your-ldap-server:389
- LDAPCP__AUTHLDAP__bind_dn=cn=admin,dc=example,dc=com
- LDAPCP__AUTHLDAP__bind_pass=your-password
ports:
- "8000:8000"
EOF
# Run with Docker Compose
docker compose up
# Using Poetry (recommended)
poetry install
# Or using pip
pip install ldap-idp
# Run the main TUI application
ldapcp-tui
# Or directly with Python
python -m ldap_idp.main
# Serve the web interface
ldapcp-serve --host 0.0.0.0 --port 8000
# Or with debug mode
ldapcp-serve --debug
Edit ldap_idp/settings.yaml to configure:
authldap:
uri: "ldap://localhost:389"
bind_dn: "cn=admin,dc=example,dc=com"
bind_pass: "admin"
browser:
default_view: table
auto_expand: true
display_mode: full
q or Ctrl+C: Quit applicationTab: Switch between panesv: Cycle through view modesEnter/Space: Expand/collapse tree nodes# Install development dependencies
poetry install --with dev
# Run with development tools
poetry run textual dev ldap_idp.main
# Run tests
poetry run pytest
GPLv3 - See LICENSE file for details.
Content type
Image
Digest
sha256:4a70b77fa…
Size
88.8 MB
Last updated
about 1 year ago
docker pull mrjk78/ldap-control-panel