Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
David Barchiesi
OpenLDAP
Commits
6826810e
Commit
6826810e
authored
20 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
allow logging to USER and DAEMON (ITS#3187)
parent
5ac9de4d
No related branches found
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
+7
-4
7 additions, 4 deletions
doc/man/man8/slapd.8
servers/slapd/main.c
+8
-5
8 additions, 5 deletions
servers/slapd/main.c
with
15 additions
and
9 deletions
doc/man/man8/slapd.8
+
7
−
4
View file @
6826810e
...
...
@@ -100,11 +100,14 @@ to basename of argv[0], i.e.: "slapd".
.BI \-l " syslog\-local\-user"
Selects the local user of the
.BR syslog (8)
facility. Value
s
can be
facility. Value can be
.BR LOCAL0 ,
.BR LOCAL1 ,
and so on, up to
.BR LOCAL7 .
through
.BR LOCAL7 ,
as well as
.B USER
and
.BR DAEMON .
The default is
.BR LOCAL4 .
However, this option is only permitted on systems that support
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/main.c
+
8
−
5
View file @
6826810e
...
...
@@ -100,7 +100,6 @@ const char Versionstr[] =
#endif
#ifdef LOG_LOCAL4
#define DEFAULT_SYSLOG_USER LOG_LOCAL4
typedef
struct
_str2intDispatch
{
...
...
@@ -109,7 +108,6 @@ typedef struct _str2intDispatch {
int
intVal
;
}
STRDISP
,
*
STRDISP_P
;
/* table to compute syslog-options to integer */
static
STRDISP
syslog_types
[]
=
{
{
"LOCAL0"
,
sizeof
(
"LOCAL0"
),
LOG_LOCAL0
},
...
...
@@ -120,11 +118,16 @@ static STRDISP syslog_types[] = {
{
"LOCAL5"
,
sizeof
(
"LOCAL5"
),
LOG_LOCAL5
},
{
"LOCAL6"
,
sizeof
(
"LOCAL6"
),
LOG_LOCAL6
},
{
"LOCAL7"
,
sizeof
(
"LOCAL7"
),
LOG_LOCAL7
},
#ifdef LOG_USER
{
"USER"
,
sizeof
(
"USER"
),
LOG_USER
},
#endif
#ifdef LOG_DAEMON
{
"DAEMON"
,
sizeof
(
"DAEMON"
),
LOG_DAEMON
},
#endif
{
NULL
,
0
,
0
}
};
static
int
cnvt_str2int
(
char
*
,
STRDISP_P
,
int
);
static
int
cnvt_str2int
(
char
*
,
STRDISP_P
,
int
);
#endif
/* LOG_LOCAL4 */
#define CHECK_NONE 0x00
...
...
@@ -450,7 +453,7 @@ int main( int argc, char **argv )
#ifdef LOG_LOCAL4
case
'l'
:
/* set syslog local user */
syslogUser
=
cnvt_str2int
(
optarg
,
syslog_types
,
DEFAULT_SYSLOG_USER
);
syslog_types
,
DEFAULT_SYSLOG_USER
);
break
;
#endif
...
...
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