realm: Couldn't join realm
I want to join an Active Directory so I followed the Windows Integration guide (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/windows_integration_guide/index)but I came across an issue which I am unable to get a solution
so when I use the following command
"sudo realm join DOMAIN"
and entering the admin password I get this error and I am stuck
See: journalctl REALMD_OPERATION=r103.3383
realm: Couldn't join realm: cannot update repo 'rhel-8-for-x86_64-sap-solutions-source-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://cdn.redhat.com/content/dist/rhel8/8.0/x86_64/sap-solutions/source/SRPMS/repodata/repomd.xml
and following command shows
$ journalctl REALMD_OPERATION=r103.3383
Jul 19 12:52:50 admin realmd[3386]: * Resolving: _ldap._tcp.DOMAIN
Jul 19 12:52:50 admin realmd[3386]: * Performing LDAP DSE lookup on: DNS
Jul 19 12:52:50 admin realmd[3386]: * Successfully discovered: DOMAIN
Jul 19 12:53:08 admin realmd[3386]: * Couldn't find file: /usr/sbin/oddjobd
Jul 19 12:53:08 admin realmd[3386]: * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/sbin/adcli
Jul 19 12:53:08 admin realmd[3386]: * Resolving required packages
Jul 19 12:53:16 admin realmd[3386]: ! cannot update repo 'rhel-8-for-x86_64-sap-solutions-source-rpms': Cannot download repomd.xml: Cannot download download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for https://cdn.redhat.com/content/dist/rhel8/8.0/x86_64/sap-solutions/source/SRPMS/repodata/repomd.xml
I tried enabling the "rhel-8-for-x86_64-sap-solutions-source-rpms" and after a yum update I get an error that Error: Failed to synchronize cache for repo 'rhel-8-for-x86_64-sap-solutions-source-rpms'
I tried cleaning the cache and reattaching my subscription and it still doesnot work
I went as far as reinstalling my RHEL8 and it still does not work
I don't know what to do next
Any suggestions?
Responses
I have a similar problem. Followed the instructions precisely. RHEL8.1
realm join corp.tcc.inet -v -U gtraudpa
* Resolving: _ldap._tcp.corp.tcc.inet
* Performing LDAP DSE lookup on: 192.168.7.173
* Performing LDAP DSE lookup on: 172.25.75.27
* Performing LDAP DSE lookup on: 172.25.49.229
* Successfully discovered: corp.tcc.inet
Password for gtraudpa:
! A domain with this name is already configured
realm: Couldn't join realm: A domain with this name is already configured
I searched for that particular error on search engines... No joy. Any ideas?
For me I found that my sssd.conf file already had a domain for my computer already configured (previous config management put it there). I remove the domain block in the sssd.conf file and was able to successfully join after that. I didn't need to restart sssd (realm join did that after reconfiguring sssd.conf).