rejoin/update client in domain
When a client was joined previously to a domain and the machine account is deleted it does not suffice to run
It exits with
realm: Already joined to this domain
It would be great if realm could join the client to the domain even though and update all necessary data. Do this automatically or maybe do this only if an option like
realm join --update-if-exist is added.
realm join --membership-software=adcli DOMAIN realm leave --remove DOMAIN # Machine account in AD and krb5.keytab are deleted realm join --membership-software=adcli DOMAIN `realm: Already joined to this domain`
Why is it still joined to domain, when machine account in AD and krb5.keytab do not exist anymore? Where is the information about a joined client stored?
realm list gives me two realms configured (sssd and winbind). As far as I understand this is only the available configuration already set for a domain which realm gets from sssd.conf and smb.conf.
Anyway, I have to run
realm leave --client-software=sssd --remove DOMAIN
realm leave --client-software=winbind --remove DOMAIN
before I can join again to domain with
realm join --membership-software=adcli DOMAIN