From Fedora Project Wiki
Join the current machine to an Active Directory, and set the operating system name and version of the account.
- Make sure you have other required software:
- realmd 0.14.0 or later
- adcli 0.7 or later
- Verify that your Active Directory domain access works, or set a domain up.
- You need a domain account as an administrator.
- You need UI access to the Windows Server for the domain.
- Leave realm(s) you are currently joined to.
- Fill in the operating system name, version, and service pack in
/etc/realmd.confwith lines that look like this.
[active-directory] os-name = Gentoo Linux os-version = 188.8.131.52.9
Make sure realmd is restarted:
$ sudo killall realmd
How to test
- Join the domain as usual
$ realm join --user=Administrator ad.example.com
- Use your domain admin password when prompted. Specify a user other than
Administratorif you have another domain administrative account.
- On a successful join there will be no output.
- Check that the domain is now configured.
$ realm list
- Make sure the domain is listed.
- Make sure you have a
configured: kerberos-memberline in the output.
- Using Active Directory Users and Computers tool in the Windows Server UI, verify that these fields were set.
- Go into Computers and find the computer account for the current machine.
- Click Properties and go to the Operating System tab.
More: Use with adcli membership software
Test the above commands with both the samba and adcli tools for joining a domain.
$ realm join --membership-software=samba ad.example.com $ realm join --membership-software=adcli ad.example.com
--verbose argument to see details of what's being done during a join. Include verbose output in any bug reports.
$ realm join --verbose ad.example.com