[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) (213.45.22.13)


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
suffix
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
the
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.

Pierangelo

PS: please, disregard the previous patch I submitted a few minutes earlier, 
(ftp://ftp.openldap.org/incoming/pierangelo-masarati-select_backend-2001-02-17.patch)
as the second one 
(ftp://ftp.openldap.org/incoming/pierangelo-masarati-select_backend-2001-02-17-2.patch)
is more complete.