[Date Prev][Date Next]
Re: backend suffix ordering
- To: OpenLDAP Devel <openldap-devel@OpenLDAP.org>
- Subject: Re: backend suffix ordering
- From: Pierangelo Masarati <firstname.lastname@example.org>
- Date: Thu, 15 Feb 2001 12:45:15 +0100
- Organization: Dipartimento di Ingegneria Aerospaziale
- References: <3A8BA8B4.E3928487@zdv.uni-tuebingen.de> <3A8BB2CE.934878D0@aero.polimi.it>
Pierangelo Masarati wrote:
> Norbert Klasen wrote:
> > Hi,
> > how is the matching backend to a query of a particular dn determined?
> > I want to have naming context of "dc=de" and "c=de". But this only works
> > if "dc=de" appers before "c=de" in slapd.conf. Otherwise queries for
> > "dc=de" are looked up in the wrong database.
> suffixes are searched linearly; the search is linear among the backends
> and, for
> each backend, among the multiple suffixes a backend may accept.
> The last N bytes of your base (after normalization) are compared to each
> N is the length of the suffix the base is being compared to.
> There should also be a check on the position the base is being cut, which
> be a dn delimiter.
BTW, I noticed that in the select_backend routine,
in servers/slapd/backend.c, the check disappeared
(the routine/macro DN_SEPARATOR), possibly
when the manageDSAit stuff was added.
Are there plans to restore it or what?
> In your case, a base "...dc=de", when compared to a
> "c=de", of course results in a match, so you're urged to put "dc=de" BEFORE
> "c=de" in the suffix order.
Dr. Pierangelo Masarati | voice: +39 02 2399 8365
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano | mailto:email@example.com
via La Masa 34, 20156 Milano, Italy | http://www.aero.polimi.it/~masarati