From 27003dccd5fa48bca50b02304238f9b9b918ee19 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 13 Sep 2007 18:40:19 +0000 Subject: [PATCH] HEADS-UP: now the list of URIs is better set by using separate arguments --- doc/man/man5/slapd-meta.5 | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/doc/man/man5/slapd-meta.5 b/doc/man/man5/slapd-meta.5 index e2c5bbe0e2..32b1239f67 100644 --- a/doc/man/man5/slapd-meta.5 +++ b/doc/man/man5/slapd-meta.5 @@ -196,16 +196,15 @@ for a shared one; otherwise, wait until the shared connection is available. Target specification starts with a "uri" directive: .TP -.B uri ://[[:]]/ -The "server" directive that was allowed in the LDAP backend (although -deprecated) has been completely discarded in the Meta backend. +.B uri ://[]/ [...] The part can be anything .BR ldap_initialize (3) -accepts ({ldap|ldaps|ldapi} and variants); and may be +accepts ({ldap|ldaps|ldapi} and variants); the may be omitted, defaulting to whatever is set in .BR ldap.conf (5). -The part is mandatory. -It must end with one of the naming contexts defined for the backend, +The part is \fImandatory\fP for the first URI, +but it \fImust be omitted\fP for subsequent ones, if any. +The naming context part must be within the naming context defined for the backend, e.g.: .LP .RS @@ -218,25 +217,25 @@ uri "ldap://x.foo.com/dc=x,\fBdc=foo,dc=com\fP" .RS The part doesn't need to be unique across the targets; it may also match one of the values of the "suffix" directive. -Multiple URIs may be defined in a single argument. The URIs must -be separated by TABs (e.g. '\\t'; commas or spaces, unlike back-ldap, -will not work, -because they are legal in the , and we don't want to use -URL-encoded s), and the additional URIs must have -no part. This causes the underlying library +Multiple URIs may be defined in a single URI statement. +The URIs must be separate arguments and must not have any + part. This causes the underlying library to contact the first server of the list that responds. For example, if \fIl1.foo.com\fP and \fIl2.foo.com\fP are shadows of the same server, the directive .LP .nf suffix "\fBdc=foo,dc=com\fP" -uri "ldap://l1.foo.com/\fBdc=foo,dc=com\fP ldap://l2.foo.com/" +uri "ldap://l1.foo.com/\fBdc=foo,dc=com\fP" "ldap://l2.foo.com/" .fi .RE .RS causes \fIl2.foo.com\fP to be contacted whenever \fIl1.foo.com\fP does not respond. +In that case, the URI list is internally rearranged, by moving unavailable +URIs to the end, so that further connection attempts occur with respect to +the last URI that succeeded. .RE .TP -- 2.39.5