[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: The real suffix alias?
> Hi,
>
> I'm using 2.1.25. What I'm trying to do here is to setup an "alias"
> suffix, and make it looks and acts like real. I hope that can ease the
> effort to change the database suffix.
>
> Before this I used a home-made script with sed and slapcat/ slapadd to
> change suffix of the whole database, and find out not only slow, it
> will have big trouble with a base64 encoded attribute.
>
> The "suffixalias" looks like a good option, but it seems can only return
> the real base instead of the aliased one, and was not included in the
> 2.1.25 stable release. So I try back-ldap.
>
> The following piece of slapd.conf makes server hang upon receiving a
> request with base "dc=test,dc=com".
>
> So I checked FAQ http://www.openldap.org/faq/data/cache/532.html
> and found out that: "The virtual naming context and the real naming
> context cannot be used as suffixes of another backend."
I wrote that note long ago, and I think it is no longer valid;
however, try to switch the two backends, and see if it works.
p.
>
> I guess that is the reason. Is there any way to achieve this? Thanks in
> advance!
>
> #######################################################################
> # ldap backend
> #######################################################################
>
> database ldap
> lastmod off
> suffix "dc=test,dc=com"
> uri "ldap:///"
> suffixmassage "dc=test,dc=com" "dc=yourdomain,dc=com"
>
> #######################################################################
> # bdb database definitions
> #######################################################################
>
> database bdb
> suffix "dc=yourdomain,dc=com"
> directory "/share/HDA_DATA/openldap/ldapdb"
> # Indices to maintain
> index objectClass eq
> index cn,sn,mail,uid pres,eq,approx,sub
>
>
> Regards,
> John Lee
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it