feat: Support backend socket connections (UDS)

This commit is contained in:
selfhoster selfhoster 2026-08-21 15:14:52 +02:00
commit cfa4b8a437
4 changed files with 117 additions and 23 deletions

View file

@ -11,7 +11,7 @@ Proxy LDAP requests to different LDAP servers based on base DN. Based on code fr
- [ ] Default fallback to `/etc/ldap-rp/config.toml`
- [x] Unix Domain Socket support (incoming requests)
- [ ] Unix Domain Socket garbage collection (incoming requests)
- [ ] Unix Domain Socket support (outgoing requests)
- [x] Unix Domain Socket support (outgoing requests)
- [ ] **not planned:** TLS termination (incoming requests)
- [ ] **not planned:** TLS backend connections (outgoing requests)
- [ ] **not planned:** TLS SNI passthrough
@ -30,6 +30,10 @@ listen = "[::]:3389"
[[mapping]]
from = "a.localhost"
to = "example.com"
# The LDAP address of the backend server:
# - start with `./` or `/` for a socket URI
# - start with anything else for a TCP connection
# backend = "/run/lldap/example.com.sock"
backend = "127.0.0.1:4389"
[[mapping]]
from = "b.localhost"