[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Selecting the destination server based on the binddn
- To: openldap-software@OpenLDAP.org
- Subject: Selecting the destination server based on the binddn
- From: Guido Guenther <agx@sigxcpu.org>
- Date: Tue, 14 Mar 2006 12:34:26 +0100
- Content-disposition: inline
- User-agent: Mutt/1.5.11+cvs20060126
Hi,
I'm trying to use back-meta to select the target server based on the
binddn. E.g. if a user binds as uid=bla-username1,dc=bar the meta backend
should direct him to: ldap://ldap.bla.bar and if another user connects
as uid=fasel-username2,dc=bar the meta backend should direct him to:
ldap://ldap.fasel.bar. Is this possible? I use:
rewriteContext bindDN
rewriteRule "uid=([a-z0-9]+)-([a-z0-9-]+)(.+)"
"%{&&target(%1)}%{&&name(%2)}uid=%2%3" ":"
to get target and username but didn't find anything usefull on howto
rewrite the destination URI with openldap2.2. Any help would be
appreciated.
Cheers,
-- Guido