diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-04-17 15:02:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-04-17 15:02:09 +0000 |
commit | 0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995 (patch) | |
tree | e84b99b5e06a05d2d0584e78187b9bbf051ac42e /perl-install | |
parent | 7cc2028eee138e459616ae7424f99d2a0e964af1 (diff) | |
download | drakx-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar drakx-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.gz drakx-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.bz2 drakx-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.tar.xz drakx-0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995.zip |
(setRootPassword): set NIS to broadcast when NIS asked. Empty NIS still means no NIS
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 13 |
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); } |