From Fedora Project Wiki

Revision as of 20:31, 12 March 2013 by Yelley (talk | contribs) (QA:Testcase FreeIPA realmd join)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Join the current machine to a FreeIPA domain. Domain accounts are available on the local machine once this is done.


  1. Verify that your FreeIPA domain access works. If you don't have a FreeIPA domain, you can set one up.
  2. You need a domain account, either a user or administrator. It's useful to test with both.
  3. Your machine must have a configured host name. Do not proceed if you host name is localhost or similar.
    $ hostname
  4. Make sure you have realmd 0.13 or later installed.
    $ yum list realmd
  5. Remove the following packages, they should be installed by realmd as necessary.
    $ sudo yum remove sssd freeipa

How to test

  1. Perform the join command. Use the --user=xxx argument to specify your domain account name.
    $ realm join --user=User
    You will be prompted for a password for the account.
    You will be prompted for Policy Kit authorization.
    On a successful join there will be no output.
    This can take up to a few minutes depending on how far away your FreeIPA domain is.

Expected Results

  1. Check that the domain is now configured.
    $ realm list
    Make sure the domain is listed.
    Make sure you have a configured: kerberos-member line in the output.
  2. Check that you can resolve domain accounts on the local computer.
    $ getent passwd 'FREEIPA\User'
    Make sure to use the quotes around the user name.
    You should see an output line that looks like passwd(5) output. It should contain an appropriate home directory, and a shell.
  3. Check that you have an appropriate entry in your hosts keytab.
    sudo klist -k
    You should see several lines, with your host name. For example 1 HOSTNAME$@FREEIPA.EXAMPLE.COM
  4. Check that you can use your keytab with kerberos
    Make sure to use quotes around the argument, because of the characters in there. Make sure the hostname and domain are capitalized.
    Use the principal from the output of the klist command above. Use the one that's capitalized and looks like HOSTNAME$@DOMAIN.
    There should be no output from this command.
  5. If you have console access to the FreeIPA server, you can use the FreeIPA Web UI to see if the computer account was created under the Hosts section.


Use the --verbose argument to see details of what's being done during a join. Include verbose output in any bug reports.

$ realm join --verbose

The selinux profile for realmd isn't yet stable, so you may want turn off enforcement. Please do still file bugs for the SElinux AVC notifications you see.

Known Issue [Selinux]: You need to turn off selinux to complete the join. Please do:

$ sudo setenforce 0

Please file all realmd AVC's at this bug:

$ sudo grep realmd /var/log/audit/audit.log