See https://lists.samba.org/archive/samba-technical/2019-October/134470.html and further emails in that thread for details