diff options
-rwxr-xr-x | install/tools/ipa-adtrust-install | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/install/tools/ipa-adtrust-install b/install/tools/ipa-adtrust-install index ea8d4e467..5744c6f67 100755 --- a/install/tools/ipa-adtrust-install +++ b/install/tools/ipa-adtrust-install @@ -170,7 +170,7 @@ def set_and_check_netbios_name(netbios_name, unattended): raise Exception('Unexpected state while checking NetBIOS domain name') if not adtrustinstance.check_netbios_name(netbios_name): - if unattended: + if unattended and not gen_netbios_name: netbios_name_error(netbios_name) sys.exit("Aborting installation.") else: @@ -181,6 +181,9 @@ def set_and_check_netbios_name(netbios_name, unattended): if not unattended and not netbios_name: netbios_name = read_netbios_name(gen_netbios_name) + if unattended and not netbios_name and gen_netbios_name: + netbios_name = gen_netbios_name + return (netbios_name, reset_netbios_name) def ensure_admin_kinit(admin_name, admin_password): |