summaryrefslogtreecommitdiffstats
path: root/debian/patches/silence-can-not-convert-group-sid.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
commit0a354ad0b2c9eaaa204c31db478da109dc6d2a8b (patch)
tree2467caa8ad20a7fca31bef64224e41a4238db0c9 /debian/patches/silence-can-not-convert-group-sid.diff
parentAdding upstream version 2:4.20.0+dfsg. (diff)
downloadsamba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.tar.xz
samba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.zip
Adding debian version 2:4.20.0+dfsg-1~exp1.debian/2%4.20.0+dfsg-1_exp1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/silence-can-not-convert-group-sid.diff')
-rw-r--r--debian/patches/silence-can-not-convert-group-sid.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/silence-can-not-convert-group-sid.diff b/debian/patches/silence-can-not-convert-group-sid.diff
new file mode 100644
index 0000000..e3a178e
--- /dev/null
+++ b/debian/patches/silence-can-not-convert-group-sid.diff
@@ -0,0 +1,26 @@
+From: Michael Tokarev <mjt@tls.msk.ru>
+Date: Wed, 14 Feb 2024 15:26:29 +0300
+Subject: silence "Can not convert group sid" warnings in the log
+Forwarded: yes
+
+/var/log/samba/log.winbind is full of messages like:
+
+[2024/02/09 06:25:04.788182, 1, pid=74620] source3/winbindd/winbindd_getgroups.c:259(winbindd_getgroups_recv)
+ Could not convert sid S-0-0: NT_STATUS_NONE_MAPPED
+
+On a busy server these are logged several 1000s times per minute,
+making any other messages basically invisible.
+
+Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
+
+diff --git a/source3/winbindd/winbindd_getgroups.c b/source3/winbindd/winbindd_getgroups.c
+index c2603cc7026..f252e14bf95 100644
+--- a/source3/winbindd/winbindd_getgroups.c
++++ b/source3/winbindd/winbindd_getgroups.c
+@@ -257,5 +257,5 @@ NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
+ if (tevent_req_is_nterror(req, &status)) {
+ struct dom_sid_buf buf;
+- D_WARNING("Could not convert sid %s: %s\n",
++ D_DEBUG("Could not convert sid %s: %s\n",
+ dom_sid_str_buf(&state->sid, &buf),
+ nt_errstr(status));