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 ?