From Fedora Project Wiki
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
|description=Leave a FreeIPA domain by deconfiguring it locally. | |description=Leave a FreeIPA domain by deconfiguring it locally. | ||
|setup= | |setup= | ||
# | # This testcase assumes you have already run the realmd join testcase. If you haven't, run through the [[QA:Testcase_FreeIPA_realmd_join|test case to join the domain]]. | ||
|actions= | |actions= | ||
Line 24: | Line 17: | ||
#: Make sure the domain is not listed. | #: Make sure the domain is not listed. | ||
# Check that you cannot resolve domain accounts on the local computer. | # Check that you cannot resolve domain accounts on the local computer. | ||
#: <pre>$ getent passwd | #: <pre>$ getent passwd admin@ipa.example.org</pre> | ||
#: There should be no output. | #: There should be no output. | ||
# Check that there is no machine account for the domain in the keytab. | # Check that there is no machine account for the domain in the keytab. | ||
Line 46: | Line 39: | ||
</pre> | </pre> | ||
Please file all realmd AVC's at this bug: https://bugzilla.redhat.com/show_bug.cgi?id= | Please file all realmd AVC's at this bug: https://bugzilla.redhat.com/show_bug.cgi?id=952830 | ||
<pre> | <pre> |
Revision as of 23:34, 17 April 2013
Description
Leave a FreeIPA domain by deconfiguring it locally.
Setup
- This testcase assumes you have already run the realmd join testcase. If you haven't, run through the test case to join the domain.
How to test
- Perform the leave command.
$ realm leave ipa.example.org
- You will be prompted for Policy Kit authorization.
- You will not be prompted for a password.
- This should proceed quickly, not take more that 10 seconds.
- On a successful leave there will be no output.
Expected Results
- Check that the domain is no longer configured.
$ realm list
- Make sure the domain is not listed.
- Check that you cannot resolve domain accounts on the local computer.
$ getent passwd admin@ipa.example.org
- There should be no output.
- Check that there is no machine account for the domain in the keytab.
sudo klist -k
- You should see no lines referring to the domain in the table, or an error message saying that the keytab does not exist.
- If you have set up the FreeIPA Web UI, you can see that computer account has not been deleted (under the Hosts section)
Troubleshooting
Use the --verbose
argument to see details of what's being done during a leave. Include verbose output in any bug reports.
$ realm leave --verbose ipa.example.org
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: https://bugzilla.redhat.com/show_bug.cgi?id=952830
$ sudo grep realmd /var/log/audit/audit.log