Rocky Linux 9 and RHEL 9 domain join

Hi this is a bit of an older link, but it mentions a centos8 script using realmd/sssd you might be able to build on as a starting point looking at what the ubuntu UCS join script does too? I’d be interested in one that could work with Alma/Fedora etc too.

https://gitlab.com/ABotelho23/UCS_domain_join/-/blob/centos8-server/setup.sh

Edit: here’s another one that may or may not be useful to start with.

Hope that helps!