Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digital-blueprint/dev-ldap-server
LDAP Dev Server
https://github.com/digital-blueprint/dev-ldap-server
Last synced: about 2 months ago
JSON representation
LDAP Dev Server
- Host: GitHub
- URL: https://github.com/digital-blueprint/dev-ldap-server
- Owner: digital-blueprint
- Created: 2023-05-04T13:05:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T05:55:20.000Z (6 months ago)
- Last Synced: 2024-06-18T07:00:19.484Z (6 months ago)
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Dev LDAP Server
[GitHub](https://github.com/digital-blueprint/dev-ldap-server) |
[Ldaptor Quickstart](https://ldaptor.readthedocs.io/en/latest/quickstart.html)```bash
# Install dependencies (or use direnv)
nix-shell# Start the LDAP server
python3 server.py# Query server with ldapsearch
ldapsearch -x -H ldap://localhost:8080 -bcn=bob,ou=people,dc=example,dc=org cn=bob# Query server with python
python3 client.py# Export ldif file from ldap01-dev.tugraz.at
# This will create a new file called tug.ldif that can be mounted as a volume as /app/data.ldif
python3 export-from-dev.py
```## Docker
### Run locally with docker compose
```bash
# Build container
docker compose build# Start container
docker compose up# Query server with ldapsearch
ldapsearch -x -H ldap://localhost:1389 -bcn=bob,ou=people,dc=example,dc=org cn=bob
```### Run just with docker
```bash
docker container run --rm ghcr.io/digital-blueprint/dev-ldap-server:latest
```## Build docker image (nix, experimental)
```bash
nix-build build.nix
docker load < result
docker run -t python-docker:latest
```