[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Referral LDAP URL and slash after hostport
Michael Ströder wrote:
> expect the problem to be limited to ldap.surfnet.nl. (Since OpenLDAP
> 2 is not able to hold a root naming context I have suffix directives
> for all national referral entries in slapd.conf).
>
The patch (attached) for 2.0.11 fixes the problem with root naming contexts.
It is incorporated to the current version of OpenLDAP-2 in CVS. I like open
source software! :-)
--
* * Konstantin Chuguev - Application Engineer
* * Francis House, 112 Hills Road
* Cambridge CB2 1PQ, United Kingdom
D A N T E WWW: http://www.dante.net
--- servers/slapd/backend.c.orig Fri Apr 20 23:50:06 2001
+++ servers/slapd/backend.c Fri May 25 11:55:59 2001
@@ -447,7 +447,7 @@
}
- if ( (len < dnlen) && !(DN_SEPARATOR( dn[(dnlen-len)-1] )) ) {
+ if ( (len < dnlen) && (len != 0) && !(DN_SEPARATOR( dn[(dnlen-len)-1] )) ) {
/* make sure we have a separator */
continue;
}