Bug 16007 - smbcacls crash against Windows 11 workgroup
Summary: smbcacls crash against Windows 11 workgroup
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.23.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-23 11:07 UTC by R. Diez
Modified: 2026-02-23 20:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R. Diez 2026-02-23 11:07:56 UTC
I want to report a crash in utility smbcacls. I built Samba 4.23.4 from sources.

It happens against a Windows 11 host which is NOT a member of a domain.

The problem is that info->domain.sid is NULL at source3/utils/smbcacls.c:109 , routine cli_lsa_lookup_domain_sid(), source code line:

*sid = *info->domain.sid;

info->domain.name is "WORKGROUP".
info->domain.sid is a NULL pointer, and that is what causes the crash.

I gather smbcacls has only been tested against hosts which are a member of a domain.

A work-around is to specify this option:

--domain-sid="S-1-5-43-4342332-4365423-981231-1015"

That SID is an example I found on the Internet. It does not matter what SID you use, as long as it is parsable, as this domain SID seems to be ignored, at least when connecting to a host which is not a member of a domain. Just having a domain SID is enough to prevent the crash.