[Samba] 4.15.5: Lot's of errors from smbd_audit about "check_account: Failed to convert SID..."

Peter Eriksson pen at lysator.liu.se
Fri Feb 18 12:32:05 UTC 2022


After upgrading our Sambas to 4.15.5 I’m seeing a _lot_ of errors in the log files about:

Feb 18 13:30:13 filur01 smbd_audit[17892]: [2022/02/18 13:30:13.204710,  0] ../../source3/auth/auth_util.c:1928(check_account)
Feb 18 13:30:13 filur01 smbd_audit[17892]:   check_account: Failed to convert SID S-1-5-21-797717765-1715453426-19741283-1903186 to a UID (dom_user[AD\iei-mvs-z-1$])
Feb 18 13:30:13 filur01 smbd_audit[79414]: [2022/02/18 13:30:13.467554,  0] ../../source3/auth/auth_util.c:1928(check_account)
Feb 18 13:30:13 filur01 smbd_audit[79414]:   check_account: Failed to convert SID S-1-5-21-797717765-1715453426-19741283-1869510 to a UID (dom_user[AD\glitner-320$])
Feb 18 13:30:13 filur01 smbd_audit[62522]: [2022/02/18 13:30:13.779434,  0] ../../source3/auth/auth_util.c:1928(check_account)
Feb 18 13:30:13 filur01 smbd_audit[62522]:   check_account: Failed to convert SID S-1-5-21-797717765-1715453426-19741283-1635176 to a UID (dom_user[AD\kypc1-102$])
Feb 18 13:30:13 filur01 smbd_audit[62522]: [2022/02/18 13:30:13.784014,  0] ../../source3/auth/auth_util.c:1928(check_account)
Feb 18 13:30:13 filur01 smbd_audit[62522]:   check_account: Failed to convert SID S-1-5-21-797717765-1715453426-19741283-1635176 to a UID (dom_user[AD\kypc1-102$])
Feb 18 13:30:13 filur01 smbd_audit[88544]: [2022/02/18 13:30:13.922285,  0] ../../source3/auth/auth_util.c:1928(check_account)
Feb 18 13:30:13 filur01 smbd_audit[88544]:   check_account: Failed to convert SID S-1-5-21-797717765-1715453426-19741283-1699850 to a UID (dom_user[AD\win00737$])

Things _seem_ to work fine for our users and I can patch away the DBG_ERR message but I’m curious if this is an indication to something more problematic?


--- samba-4.15.5/source3/auth/auth_util.c.ORIG  2022-02-18 13:25:58.222947000 +0100
+++ samba-4.15.5/source3/auth/auth_util.c       2022-02-18 13:25:59.976258000 +0100
@@ -1925,7 +1925,7 @@
 
                ok = sid_to_uid(sid, &uid);
                if (!ok) {
-                       DBG_ERR("Failed to convert SID %s to a UID (dom_user[%s])\n",
+                       DBG_DEBUG("Failed to convert SID %s to a UID (dom_user[%s])\n",
                                dom_sid_str_buf(sid, &buf), dom_user);
                        return NT_STATUS_NO_SUCH_USER;
                }

- Peter




More information about the samba mailing list