The patch which I use in debian: https://lists.samba.org/archive/samba-technical/2022-April/137322.html /mjt