From 87de78306f9400f63496f27fd86ba55e0efd9500 Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Fri, 30 Jan 2009 20:47:21 +0000
Subject: [PATCH] ITS#5891

---
 CHANGES                  | 1 +
 doc/man/man8/slapadd.8   | 6 ++++++
 doc/man/man8/slapcat.8   | 7 ++++++-
 doc/man/man8/slapindex.8 | 7 ++++++-
 4 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/CHANGES b/CHANGES
index 0295b0f5c6..47d011afac 100644
--- a/CHANGES
+++ b/CHANGES
@@ -63,6 +63,7 @@ OpenLDAP 2.4.14 Engineering
 		slapd-bdb/hdb expansion on dncachesize behavior (ITS#5721)
 		slapo-constraint(5) example fix (ITS#5895)
 		slap*(8) man pages should mention slapd-config (ITS#5828)
+		slapadd/cat/index(8) note -n 0 for slapd-config (ITS#5891)
 
 OpenLDAP 2.4.13 Release (2008/11/24)
 	Added libldap dereference control support (ITS#5768)
diff --git a/doc/man/man8/slapadd.8 b/doc/man/man8/slapadd.8
index d75468af30..8f1c47fdbb 100644
--- a/doc/man/man8/slapadd.8
+++ b/doc/man/man8/slapadd.8
@@ -108,6 +108,12 @@ configuration file.  The
 cannot be used in conjunction with the
 .B \-b
 option.
+To populate the config database
+.BR slapd-config (5),
+use 
+.B \-n 0
+as it is always the first database. It must physically exist
+on the filesystem prior to this, however.
 .TP
 .BI \-o " option[=value]"
 Specify an
diff --git a/doc/man/man8/slapcat.8 b/doc/man/man8/slapcat.8
index 6dd237311f..11bd8bdef7 100644
--- a/doc/man/man8/slapcat.8
+++ b/doc/man/man8/slapcat.8
@@ -103,7 +103,12 @@ Write LDIF to specified file instead of standard output.
 .TP
 .BI \-n " dbnum"
 Generate output for the \fIdbnum\fR\-th database listed in the
-configuration file.  The
+configuration file. The config database
+.BR slapd-config (5),
+is always the first database, so use
+.B \-n 0
+
+The
 .B \-n
 cannot be used in conjunction with the
 .B \-b
diff --git a/doc/man/man8/slapindex.8 b/doc/man/man8/slapindex.8
index 6c897f71f4..ff83baef44 100644
--- a/doc/man/man8/slapindex.8
+++ b/doc/man/man8/slapindex.8
@@ -92,7 +92,12 @@ processed, and not its glued subordinates (if any).
 .TP
 .BI \-n " dbnum"
 Generate output for the \fIdbnum\fR\-th database listed in the
-configuration file.  The
+configuration file. The config database
+.BR slapd-config (5),
+is always the first database, so use
+.B \-n 0
+
+The
 .B \-n
 cannot be used in conjunction with the
 .B \-b
-- 
GitLab