Hi,
I have a scenario where I would like an LDAP proxy which looks at the
base DN and generated a LDAP URI to proxy to dynamicly.
I have several 100.000 potential URIs and they change constantly, so
hardwiring them in slapd.conf is not an option.
Example:
An search request arrives for this base "dc=host1,dc=mutex,dc=dk".
The proxy should proxy the request to:
ldap://host1.mutex.dk/dc=host1,dc=mutex,dc=dk/
... and so on for host2-<very high number> (no I don't have 200000
LDAP-servers but I have 200000 DNS entries to which server I do not
kontrol the mapping)
I though I had to write a back-perl module, but I've been looking at
slapd-meta and I see that it can rewrite to URIs:
"In case the rewritten DN is an LDAP URI, the operation is initiated
towards the host[:port] indicated in the uri, if it does not refer to
the local server"