URL:
https://github.com/freeipa/freeipa/pull/2640
Author: tiran
Title: #2640: Handle service_del with bad service name
Action: opened
PR body:
"""
The command 'ipa service-del badservice' used to fail with an internal
server error, because check_required_principal() could not handle a
principal that is not a service principal. All del commands have less
strict error checking of primary keys so they can reference any stored
key, even illegal ones.
check_required_principal() skips required principal check if the
principal is not a service principal. A non-service principal can never
be a required principal.
Fixes:
https://pagure.io/freeipa/issue/7793
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2640/head:pr2640
git checkout pr2640