silence "Can not convert group sid" warnings in the log
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 14 Feb 2024 12:26:29 +0000 (15:26 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 May 2024 17:31:41 +0000 (20:31 +0300)
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>
Gbp-Pq: Name silence-can-not-convert-group-sid.diff

source3/winbindd/winbindd_getgroups.c

index c1c108e4155bec7b7581a7b899cc7d8d198848e8..019cbd0b4c57eeddb49076128fbc85d88b0910c6 100644 (file)
@@ -256,7 +256,7 @@ 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));
                return status;