Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Kooman
OpenLDAP
Commits
bf6fccd7
Commit
bf6fccd7
authored
22 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#1740
parent
737aee17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man8/slapd.8
+3
-0
3 additions, 0 deletions
doc/man/man8/slapd.8
servers/slapd/config.c
+15
-12
15 additions, 12 deletions
servers/slapd/config.c
with
18 additions
and
12 deletions
doc/man/man8/slapd.8
+
3
−
0
View file @
bf6fccd7
...
...
@@ -66,6 +66,9 @@ will not fork or disassociate from the invoking terminal. Some general
operation and status messages are printed for any value of \fIdebug\-level\fP.
\fIdebug\-level\fP is taken as a bit string, with each bit corresponding to a
different kind of debugging information. See <ldap.h> for details.
Remember that if you turn on packet logging, packets containing bind passwords
will be output, so if you redirect the log to a logfile, that file should
be read-protected.
.TP
.BI \-s " syslog\-level"
This option tells
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/config.c
+
15
−
12
View file @
bf6fccd7
...
...
@@ -67,7 +67,7 @@ int use_reverse_lookup = 0;
static
char
*
fp_getline
(
FILE
*
fp
,
int
*
lineno
);
static
void
fp_getline_init
(
int
*
lineno
);
static
int
fp_parse_line
(
char
*
line
,
int
*
argcp
,
char
**
argv
);
static
int
fp_parse_line
(
int
lineno
,
char
*
line
,
int
*
argcp
,
char
**
argv
);
static
char
*
strtok_quote
(
char
*
line
,
char
*
sep
);
static
int
load_ucdata
(
char
*
path
);
...
...
@@ -119,18 +119,10 @@ read_config( const char *fname )
continue
;
}
#ifdef NEW_LOGGING
LDAP_LOG
((
"config"
,
LDAP_LEVEL_DETAIL1
,
"line %d (%s)
\n
"
,
lineno
,
line
));
#else
Debug
(
LDAP_DEBUG_CONFIG
,
"line %d (%s)
\n
"
,
lineno
,
line
,
0
);
#endif
/* fp_parse_line is destructive, we save a copy */
saveline
=
ch_strdup
(
line
);
if
(
fp_parse_line
(
line
,
&
cargc
,
cargv
)
!=
0
)
{
if
(
fp_parse_line
(
lineno
,
line
,
&
cargc
,
cargv
)
!=
0
)
{
return
(
1
);
}
...
...
@@ -2360,16 +2352,27 @@ read_config( const char *fname )
static
int
fp_parse_line
(
int
lineno
,
char
*
line
,
int
*
argcp
,
char
**
argv
)
{
char
*
token
;
char
*
logline
;
*
argcp
=
0
;
for
(
token
=
strtok_quote
(
line
,
"
\t
"
);
token
!=
NULL
;
token
=
strtok_quote
(
NULL
,
"
\t
"
)
)
{
token
=
strtok_quote
(
line
,
"
\t
"
);
logline
=
(
!
token
||
strcasecmp
(
token
,
"rootpw"
)
?
line
:
"rootpw *"
);
#ifdef NEW_LOGGING
LDAP_LOG
((
"config"
,
LDAP_LEVEL_DETAIL1
,
"line %d (%s)
\n
"
,
lineno
,
logline
));
#else
Debug
(
LDAP_DEBUG_CONFIG
,
"line %d (%s)
\n
"
,
lineno
,
logline
,
0
);
#endif
for
(
;
token
!=
NULL
;
token
=
strtok_quote
(
NULL
,
"
\t
"
)
)
{
if
(
*
argcp
==
MAXARGS
)
{
#ifdef NEW_LOGGING
LDAP_LOG
((
"config"
,
LDAP_LEVEL_CRIT
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment