URL:
https://github.com/freeipa/freeipa/pull/2413
Author: t-woerner
Title: #2413: Find orphan automember rules
Action: opened
PR body:
"""
If groups or hostgroups have been removed after automember rules have been
created using them, then automember-rebuild, automember-add, host-add and
more commands could fail.
A new command has been added to the ipa tool:
ipa automember-find-orphans --type={hostgroup,group} [--remove]
This command retuns the list of orphan automember rules in the same way as
automember-find. With the --remove option the orphan rules are also removed.
Using ideas from a patch by: Rob Crittenden <rcritten(a)redhat.com>
See:
https://pagure.io/freeipa/issue/6476
Signed-off-by: Thomas Woerner <twoerner(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2413/head:pr2413
git checkout pr2413