Somehow this works as is in master/4.25, but backports to older branches revealed that the dependency should be explicit.
This bug was referenced in samba master: 1cc0c6047e4d927c847174fbc1d370255e25cd1c
Created attachment 19167 [details] Patch for v4-25-test
This needs to go to v4-25-test, it's missing there
please don't reopen - I close bugs as fixed as soon as I have submitted them to the test branches, which I just did :)
This bug was referenced in samba v4-25-test: 64bf27775a4b71862e28f9aa1b952ace8501e28b
This bug was referenced in samba v4-25-stable (Release samba-4.25.0rc2): 64bf27775a4b71862e28f9aa1b952ace8501e28b