Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9b716c

Browse files
committed
tests: Prevent syslog activity by slapd, take 2
Unfortunately it turns out that the logfile-only option added inb9f8d1cis only available in openldap starting in 2.6.Luckily the option to control the log level (loglevel/-s) have been around formuch longer. As it turns out loglevel/-s only control what goes into syslog,not what ends up in the file specified with 'logfile' and stderr.While we currently are specifying 'logfile', nothing ends up in it, as theoption only controls debug messages, and we didn't set a debug level. Thedebug level can only be configured on the commandline and also preventsforking. That'd require larger changes, so this commit doesn't tackle thatissue.Specify the syslog level when starting slapd using -s, as that allows toprevent all syslog messages if one uses '0' instead of 'none', while logleveldoesn't prevent the first message.Discussion:https://postgr.es/m/20230311233708.3yjdbjkly2q4gq2j@awork3.anarazel.deBackpatch: 11-
1 parente304e50 commita9b716c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/test/ldap/t/001_auth.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
7979
pidfile$slapd_pidfile
8080
logfile$slapd_logfile
81-
logfile-only on
8281
8382
access to *
8483
by * read
@@ -114,7 +113,8 @@
114113
"-CA","$slapd_certs/ca.crt","-CAkey","$slapd_certs/ca.key",
115114
"-CAcreateserial","-out","$slapd_certs/server.crt";
116115

117-
system_or_bail$slapd,'-f',$slapd_conf,'-h',"$ldap_url$ldaps_url";
116+
# -s0 prevents log messages ending up in syslog
117+
system_or_bail$slapd,'-f',$slapd_conf,'-s0','-h',"$ldap_url$ldaps_url";
118118

119119
END
120120
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp