mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Deprecate ipa-client-install --request-cert
Mark the --request-cert option for ipa-client-install as deprecated. Users are encouraged to request a PEM certificate with certmonger instead. The option and /etc/ipa/nssdb will be removed in a future version. Related: https://pagure.io/freeipa/issue/7492 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
@@ -3691,6 +3691,7 @@ class ClientInstallInterface(hostname_.HostNameInstallInterface,
|
||||
|
||||
request_cert = knob(
|
||||
None,
|
||||
deprecated=True,
|
||||
description="request certificate for the machine",
|
||||
)
|
||||
request_cert = prepare_only(request_cert)
|
||||
@@ -3703,7 +3704,10 @@ class ClientInstallInterface(hostname_.HostNameInstallInterface,
|
||||
"--server cannot be used without providing --domain")
|
||||
|
||||
if self.force_ntpd:
|
||||
logger.warning("Option --force-ntpd has been deprecated")
|
||||
logger.warning(
|
||||
"Option --force-ntpd has been deprecated and will be "
|
||||
"removed in a future release."
|
||||
)
|
||||
|
||||
if self.ntp_servers and self.no_ntp:
|
||||
raise RuntimeError(
|
||||
@@ -3713,6 +3717,12 @@ class ClientInstallInterface(hostname_.HostNameInstallInterface,
|
||||
raise RuntimeError(
|
||||
"--ntp-pool cannot be used together with --no-ntp")
|
||||
|
||||
if self.request_cert:
|
||||
logger.warning(
|
||||
"Option --request-cert has been deprecated and will be "
|
||||
"removed in a future release."
|
||||
)
|
||||
|
||||
if self.no_nisdomain and self.nisdomain:
|
||||
raise RuntimeError(
|
||||
"--no-nisdomain cannot be used together with --nisdomain")
|
||||
|
||||
Reference in New Issue
Block a user