summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-04-17 15:02:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-04-17 15:02:09 +0000
commit0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995 (patch)
treee84b99b5e06a05d2d0584e78187b9bbf051ac42e
parent7cc2028eee138e459616ae7424f99d2a0e964af1 (diff)
downloaddrakx-backup-do-not-use-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar
drakx-backup-do-not-use-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.gz
drakx-backup-do-not-use-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.bz2
drakx-backup-do-not-use-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.xz
drakx-backup-do-not-use-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.zip
(setRootPassword): set NIS to broadcast when NIS asked. Empty NIS still means no NIS
-rw-r--r--perl-install/install_steps_interactive.pm13
1 files changed, 8 insertions, 5 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 869a26d6e..e1cad7461 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -908,11 +908,14 @@ sub setRootPassword {
),
]) or return;
- if ($nis) { $o->ask_from_entries_refH('',
- _("Authentification NIS"),
- [ { label => _("NIS Domain"), val => \ ($o->{netc}{NISDOMAIN} ||= $o->{netc}{DOMAINNAME}) },
- { label => _("NIS Server"), val => \$o->{authentication}{NIS}, list => ["broadcast"], not_edit => 0 },
- ]); } else { $o->{authentication}{NIS} = ''; }
+ if ($nis) {
+ $o->{authentication}{NIS} = 'broadcast';
+ $o->ask_from_entries_refH('',
+ _("Authentification NIS"),
+ [ { label => _("NIS Domain"), val => \ ($o->{netc}{NISDOMAIN} ||= $o->{netc}{DOMAINNAME}) },
+ { label => _("NIS Server"), val => \$o->{authentication}{NIS}, list => ["broadcast"], not_edit => 0 },
+ ]);
+ } else { $o->{authentication}{NIS} = '' }
install_steps::setRootPassword($o);
}