mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
Ask for reverse zone creation only when --setup-bind is specified
This commit is contained in:
parent
f5a10bc2ec
commit
5747568e5d
@ -545,6 +545,7 @@ def main():
|
||||
master_password = ""
|
||||
dm_password = ""
|
||||
admin_password = ""
|
||||
create_reverse = False
|
||||
|
||||
# check bind packages are installed
|
||||
if options.setup_dns:
|
||||
@ -834,7 +835,8 @@ def main():
|
||||
|
||||
# Create a BIND instance
|
||||
bind = bindinstance.BindInstance(fstore, dm_password)
|
||||
create_reverse = bindinstance.create_reverse(options.unattended)
|
||||
if options.setup_dns:
|
||||
create_reverse = bindinstance.create_reverse(options.unattended)
|
||||
bind.setup(host_name, ip_address, realm_name, domain_name, dns_forwarders, options.conf_ntp, create_reverse, zonemgr=options.zonemgr)
|
||||
if options.setup_dns:
|
||||
api.Backend.ldap2.connect(bind_dn="cn=Directory Manager", bind_pw=dm_password)
|
||||
|
Loading…
Reference in New Issue
Block a user