mikael@ suggests that we should investigate if we would benefit from applying this patch: https://github.com/truenas/samba/commit/617e510a998d4c8f05d7eb60b09011f21b4e99bb and reverting this one: https://cgit.freebsd.org/ports/commit/?id=6a6678eefe429ff40c7521ccdb93b5c4196f570f I'm opening a PR here so that we can track the progress together.
(In reply to Mateusz Piotrowski from comment #0) I see a benefit of applying the former, but why should the fix for libsunacl be reverted?