Samba-vsf-module package

If the exact same Samba setup (same smb.conf, files installed etc.) works on Debian but not on Rocky Linux, then that is a bug, not a Samba bug, but a redhat one, they must be doing something slightly different at configure/compile time. It could have something to do with MIT, who knows ?

Is it possible you could try the Samba packages from Tranquil IT, see here:
Installing and configuring Samba-AD on RHEL and derivatives — Samba-AD 4.20 documentation

Yes, the smb.conf on rocky linux is the same on debian side.

I configured samba file server with packages from Tranquil IT follow the link that you post here.