Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
ed7572cd
Commit
ed7572cd
authored
Sep 29, 2009
by
Quanah Gibson-Mount
Browse files
ITS
#6258
parent
3801b179
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
ed7572cd
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)
...
...
doc/man/man8/slapcat.8
View file @
ed7572cd
...
...
@@ -118,6 +118,7 @@ configuration file. The config database
.BR slapd\-config (5),
is always the first database, so use
.B \-n 0
to select it.
The
.B \-n
...
...
doc/man/man8/slaptest.8
View file @
ed7572cd
...
...
@@ -13,6 +13,8 @@ slaptest \- Check the suitability of the OpenLDAP slapd.conf file
[\c
.BI \-F \ confdir\fR]
[\c
.BI \-n dbnum\fR]
[\c
.BI \-o \ option\fR[ = value\fR]]
[\c
.BR \-Q ]
...
...
@@ -62,6 +64,15 @@ config file. If a valid config directory exists then the
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
...
...
servers/slapd/slapcommon.c
View file @
ed7572cd
...
...
@@ -92,7 +92,7 @@ usage( int tool, const char *progname )
break
;
case
SLAPTEST
:
options
=
" [-u]
\n
"
;
options
=
"
[-n databasenumber]
[-u]
\n
"
;
break
;
case
SLAPSCHEMA
:
...
...
@@ -268,7 +268,7 @@ slap_tool_init(
break
;
case
SLAPTEST
:
options
=
"d:f:F:o:Quv"
;
options
=
"d:f:F:
n:
o:Quv"
;
mode
|=
SLAP_TOOL_READMAIN
|
SLAP_TOOL_READONLY
;
break
;
...
...
@@ -608,8 +608,11 @@ slap_tool_init(
}
switch
(
tool
)
{
case
SLAPDN
:
case
SLAPTEST
:
if
(
dbnum
>=
0
)
goto
get_db
;
/* FALLTHRU */
case
SLAPDN
:
case
SLAPAUTH
:
be
=
NULL
;
goto
startup
;
...
...
@@ -733,6 +736,7 @@ slap_tool_init(
exit
(
EXIT_FAILURE
);
}
else
{
get_db:
LDAP_STAILQ_FOREACH
(
be
,
&
backendDB
,
be_next
)
{
if
(
dbnum
==
0
)
break
;
dbnum
--
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment