[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Selecting the destination server based on the binddn



On Tue, 2006-03-14 at 12:34 +0100, Guido Guenther wrote:
> 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.

That's because in back-meta it's not possible to modify the URI of a
target.

p.




Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------