OpenLDAP 2.4 Change Log
OpenLDAP 2.4.19 Engineering
+ Fixed slapd tools to allow -n for conversion (ITS#6258)
Fixed slapo-dynlist lock leak (ITS#6308)
Fixed slapo-pcache cache corruption (ITS#6242)
Fixed contrib/nssov getgroupbymembers (ITS#6291)
.BR slapd\-config (5),
is always the first database, so use
.B \-n 0
+to select it.
The
.B \-n
[\c
.BI \-F \ confdir\fR]
[\c
+.BI \-n dbnum\fR]
+[\c
.BI \-o \ option\fR[ = value\fR]]
[\c
.BR \-Q ]
default config file is ignored. If dry-run mode is also specified,
no conversion will occur.
.TP
+.BI \-n \ dbnum
+Just open and test the \fIdbnum\fR-th database listed in the
+configuration file.
+To only test the config database
+.BR slapd\-config (5),
+use
+.B \-n 0
+as it is always the first database.
+.TP
.BI \-o \ option\fR[ = value\fR]
Specify an
.I option
break;
case SLAPTEST:
- options = " [-u]\n";
+ options = " [-n databasenumber] [-u]\n";
break;
case SLAPSCHEMA:
break;
case SLAPTEST:
- options = "d:f:F:o:Quv";
+ options = "d:f:F:n:o:Quv";
mode |= SLAP_TOOL_READMAIN | SLAP_TOOL_READONLY;
break;
}
switch ( tool ) {
- case SLAPDN:
case SLAPTEST:
+ if ( dbnum >= 0 )
+ goto get_db;
+ /* FALLTHRU */
+ case SLAPDN:
case SLAPAUTH:
be = NULL;
goto startup;
exit( EXIT_FAILURE );
} else {
+get_db:
LDAP_STAILQ_FOREACH( be, &backendDB, be_next ) {
if ( dbnum == 0 ) break;
dbnum--;