30 lines
615 B
Markdown
30 lines
615 B
Markdown
|
|
# 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
|
||
|
|
```
|