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

Backend selection (ITS#1035)

Full_Name: Pierangelo Masarati
Version: devel
OS: RH Linux 6.2
URL: ftp://ftp.openldap.org/incoming/pierangelo-masarati-select_backend-2001-02-17-2.patch
Submission from: (NULL) (

As emerged from discussions in the devel list, when a backend is selected based
on a dn
that is longer than the running naming context, there is no check that the
match occurs at a dn separator. As a result, someone complained that "c=DE" 
was erroneously selected instead of "dc=de" because the former was listed before
latter. By copying a test that is performed in suffixalias.c when deciding
whether to
aliase or not a suffix, I modified the select_backend routine to overcome this 
limitation. It seems to work correctly, though I didn't check if the manageDSAit

stuff still behaves as expected.


PS: please, disregard the previous patch I submitted a few minutes earlier, 
as the second one 
is more complete.