feat: Initial implementation (bind/search/whoami)

This commit is contained in:
selfhoster selfhoster 2026-08-20 21:05:09 +02:00
commit d42508b15e
14 changed files with 2325 additions and 0 deletions

30
README.md Normal file
View file

@ -0,0 +1,30 @@
# multildap
Proxy LDAP requests to different LDAP servers based on base DN. Based on code from [kanidm/ldap-proxy](https://github.com/kanidm/ldap-proxy/) under the [MPL license](LICENSE.md).
## Features
- [x] No TLS setup ; use only in trusted networks
- [x] LDAP bind requests
- [x] LDAP search requests
## Configuration
Create a configuration file `config.toml` with the following:
```toml
[[mapping]]
from = "a.localhost"
to = "example.com"
backend = "127.0.0.1:4389"
[[mapping]]
from = "b.localhost"
to = "example.com"
backend = "127.0.0.1:5389"
```
## Running
```
cargo run -- --config config.toml
```