summaryrefslogtreecommitdiffstats
path: root/nisautofs_wizard/Nisautofs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'nisautofs_wizard/Nisautofs.pm')
-rw-r--r--nisautofs_wizard/Nisautofs.pm19
1 files changed, 10 insertions, 9 deletions
diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm
index 4954e924..cf3755a4 100644
--- a/nisautofs_wizard/Nisautofs.pm
+++ b/nisautofs_wizard/Nisautofs.pm
@@ -33,7 +33,8 @@ use MDK::Wizard::Wizcommon;
# test root capa
my $wiz = new MDK::Wizard::Wizcommon;
-my $NISDOMAIN = $wiz->{net}->network_get("NISDOMAIN");
+#my $NISDOMAIN = $wiz->{net}->network_get("NISDOMAIN");
+my $NISDOMAIN = chomp_(`dnsdomainname`);
my @HOST = split('\.', $wiz->{net}->network_get("HOSTNAME"));
my $HOST = @HOST[0]; # just need basename and not full qualified computer hostname (with domainaname)
my $NIS_DIRMAKEFILE = "/var/yp/";
@@ -60,7 +61,7 @@ my $o = {
defaultimage => "$ENV{__WIZ_HOME__}/nisautofs_wizard/images/nisautofs.png",
init => sub {
if (member($NISDOMAIN, qw(localdomain (none)))) {
- return 0, N("You need to readjust your NIS domainname. For a NIS server you need a correct NIS domainname, not equal to localdomain or none. Add NISDOMAIN=your_nis_domain in /etc/sysconfig/network file, and do a: nisdomainname your_nis_domain.")
+ return 0, N("You need to readjust your NIS domainname. For a NIS server you need a correct NIS domainname, not equal to localdomain or none.")
}
1
},
@@ -73,7 +74,7 @@ my %level = (
$o->{pages} = {
welcome => {
- name => N("NIS server with autofs map") . "\n\n" . N("Setup a NIS server with autofs map, auto.home and auto.master files.") . "\n\n" . N("Client can automatically mount their home directory when they log on a NIS client computer network."),
+ name => N("NIS server with autofs map") . "\n\n" . N("Setup a NIS server with autofs map, auto.home and auto.master files.") . "\n\n" . N("User automatically mount their home directory from server, when they log on a NIS client computer network."),
no_back => 1,
pre => sub { $o->{var}{wiz_level} ||= 1 },
post => sub { if ($o->{var}{wiz_level} == 2) {
@@ -86,7 +87,7 @@ $o->{pages} = {
next => 'nis_server',
},
nis_client => {
- name => N("Configure computer to be a NIS client") . "\n\n" . N("You just have to put nisdomain and nisserver"),
+ name => N("Configure computer to be a NIS client") . "\n\n" . N("You just have to put nisdomain and nisserver."),
data => [
{ label => N("NIS Server:"), val => \$o->{var}{NISSERVER} },
{ label => N("NIS Domain:"), val => \$o->{var}{NISDOMAIN} },
@@ -94,7 +95,7 @@ $o->{pages} = {
next => 'summaryclient',
},
nis_server => {
- name => N("NIS server with autofs map") . "\n\n" . N("NIS server: name of your computer.") . "\n" . N("Home NIS: home directory for users on NIS server. This directory will be export through NFS server.") . "\n" . N("NIS domain: NIS domain for your NIS server."),
+ name => N("NIS server with autofs map") . "\n\n" . N("A NIS server is usefull to create user, hostname database. The wizard also build autofs map, so it provides the capabilitie for NIS user to automount their home directory on a NIS client computer.") . "\n\n" . N("NIS server: name of your computer.") . "\n" . N("Home NIS: home base directory for users on NIS server. This directory will be export through NFS server.") . "\n" . N("NIS domain: NIS domain to use (generally same as your DNS domainaname)."),
data => [
{ label => N("NIS server:"), val => $HOST },
{ label => N("Home NIS:"), val => \$o->{var}{HOMENIS} },
@@ -104,7 +105,7 @@ $o->{pages} = {
next => 'summaryserver',
},
summaryserver => {
- name => N("Will set your NIS server with autofs map"),
+ name => N("The wizard will set your NIS server with autofs map"),
data => [
{ label => N("NIS server:"), fixed_val => \$HOST },
{ label => N("Home NIS:"), fixed_val => \$o->{var}{HOMENIS} },
@@ -119,7 +120,7 @@ $o->{pages} = {
next => 'endserver',
},
summaryclient => {
- name => N("The ypbind daemon binds NIS client to a NIS domain") . "\n\n" . N("NIS server: hostname of the nisserver.") . "\n" . N("NIS domainname: name of NIS domainname."),
+ name => N("The YPBIND daemon finds the server for NIS domains and maintains the NIS binding informationdaem.") . "\n\n" . N("NIS server: hostname of the NIS server.") . "\n" . N("NIS domainname: name of NIS domain."),
data => [
{ label => N("NIS server:"), fixed_val => \$o->{var}{NISSERVER} },
{ label => N("NIS domainname:"), fixed_val => \$o->{var}{NISDOMAIN} },
@@ -128,11 +129,11 @@ $o->{pages} = {
next => 'endclient',
},
error_homedir => {
- name => N("Error should be a directory"),
+ name => N("Error should be a directory."),
next => 'nis_server',
},
error_nisd => {
- name => N("Error nisdomainame should be correct (not none or localdomain)") . "\n\n" . N("Please adjust with domainname command or in /etc/sysconfig/network file (NISDOMAIN=yournisdomain)"),
+ name => N("Error nisdomainame should not be 'none' or 'localdomain'") . "\n\n" . N("Please adjust it."),
end => 1,
next => 0,
},