OK, I can reproduce the bug here.
I backported the 3 upstream patches that fix this bug, and built a new Samba version in a PPA:
https://launchpad.net/~sergiodj/+archive/ubuntu/samba-bug1912750
However, even after installing it, I'm still seeing the error when running "samba-tool".
I'm still investigating.
OK, I can reproduce the bug here.
I backported the 3 upstream patches that fix this bug, and built a new Samba version in a PPA:
https:/ /launchpad. net/~sergiodj/ +archive/ ubuntu/ samba-bug191275 0
However, even after installing it, I'm still seeing the error when running "samba-tool".
I'm still investigating.