mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
SID generation: define SIDInstallInterface
Move the SID-related options into a separate InstallInterface (--add-sids, --netbios-name, --rid-base and --secondary-rid-base), make ADTrustInstallInterface inherit from SIDInstallInterface. Related: https://pagure.io/freeipa/issue/8995 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
ebe838cb86
commit
f9e95ce51e
@ -530,43 +530,26 @@ def generate_dns_service_records_help(api):
|
|||||||
|
|
||||||
|
|
||||||
@group
|
@group
|
||||||
class ADTrustInstallInterface(ServiceAdminInstallInterface):
|
class SIDInstallInterface(ServiceAdminInstallInterface):
|
||||||
"""
|
"""
|
||||||
Interface for the AD trust installer
|
Interface for the SID generation Installer
|
||||||
|
|
||||||
Knobs defined here will be available in:
|
Knobs defined here will be available in:
|
||||||
* ipa-server-install
|
* ipa-server-install
|
||||||
* ipa-replica-install
|
* ipa-replica-install
|
||||||
* ipa-adtrust-install
|
* ipa-adtrust-install
|
||||||
"""
|
"""
|
||||||
description = "AD trust"
|
description = "SID generation"
|
||||||
|
|
||||||
# the following knobs are provided on top of those specified for
|
|
||||||
# admin credentials
|
|
||||||
add_sids = knob(
|
add_sids = knob(
|
||||||
None,
|
None,
|
||||||
description="Add SIDs for existing users and groups as the final step"
|
description="Add SIDs for existing users and groups as the final step"
|
||||||
)
|
)
|
||||||
add_agents = knob(
|
add_sids = replica_install_only(add_sids)
|
||||||
None,
|
|
||||||
description="Add IPA masters to a list of hosts allowed to "
|
|
||||||
"serve information about users from trusted forests"
|
|
||||||
)
|
|
||||||
add_agents = replica_install_only(add_agents)
|
|
||||||
enable_compat = knob(
|
|
||||||
None,
|
|
||||||
description="Enable support for trusted domains for old clients"
|
|
||||||
)
|
|
||||||
netbios_name = knob(
|
netbios_name = knob(
|
||||||
str,
|
str,
|
||||||
None,
|
None,
|
||||||
description="NetBIOS name of the IPA domain"
|
description="NetBIOS name of the IPA domain"
|
||||||
)
|
)
|
||||||
no_msdcs = knob(
|
|
||||||
None,
|
|
||||||
description="Deprecated: has no effect",
|
|
||||||
deprecated=True
|
|
||||||
)
|
|
||||||
rid_base = knob(
|
rid_base = knob(
|
||||||
int,
|
int,
|
||||||
1000,
|
1000,
|
||||||
@ -578,3 +561,34 @@ class ADTrustInstallInterface(ServiceAdminInstallInterface):
|
|||||||
description="Start value of the secondary range for mapping "
|
description="Start value of the secondary range for mapping "
|
||||||
"UIDs and GIDs to RIDs"
|
"UIDs and GIDs to RIDs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@group
|
||||||
|
class ADTrustInstallInterface(SIDInstallInterface):
|
||||||
|
"""
|
||||||
|
Interface for the AD trust installer
|
||||||
|
|
||||||
|
Knobs defined here will be available in:
|
||||||
|
* ipa-server-install
|
||||||
|
* ipa-replica-install
|
||||||
|
* ipa-adtrust-install
|
||||||
|
"""
|
||||||
|
description = "AD trust"
|
||||||
|
|
||||||
|
# the following knobs are provided on top of those specified for
|
||||||
|
# admin credentials
|
||||||
|
add_agents = knob(
|
||||||
|
None,
|
||||||
|
description="Add IPA masters to a list of hosts allowed to "
|
||||||
|
"serve information about users from trusted forests"
|
||||||
|
)
|
||||||
|
add_agents = replica_install_only(add_agents)
|
||||||
|
enable_compat = knob(
|
||||||
|
None,
|
||||||
|
description="Enable support for trusted domains for old clients"
|
||||||
|
)
|
||||||
|
no_msdcs = knob(
|
||||||
|
None,
|
||||||
|
description="Deprecated: has no effect",
|
||||||
|
deprecated=True
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user