Hard-coded "pluto" domain in NIS configuration
There are some hard-coded "pluto" references in the various set-up scripts, which cause a conflict between NIS using getent or other Unix lookup calls, and the configuration in LMCE, which affects DNS and Samba config. Patches are against 10.04.
----
--- Network_Setup.sh.orig 2013-12-26 09:23:08.769750672 -0500
+++ Network_Setup.sh 2013-12-26 09:29:41.960737359 -0500
@@ -611,7 +611,7 @@
fi
## Configure NIS Server
- echo "pluto" > /etc/defaultdomain
+ echo "$DomainName" > /etc/defaultdomain
cp /usr/pluto/templates/nis-server.template /etc/default/nis
fi
----
--- Network_NIS.sh.orig 2013-12-26 09:30:58.113767660 -0500
+++ Network_NIS.sh 2013-12-26 09:42:48.288768021 -0500
@@ -2,10 +2,10 @@
. /usr/pluto/bin/Network_Parameters.sh
-#NIS_Domain=$(</etc/defaultdomain)
-#if [-z "$NIS_Domain" ]([)]; then
+NIS_Domain=$(< /etc/defaultdomain)
+if [-z "$NIS_Domain" ]([)]; then
NIS_Domain=pluto
-#fi
+fi
echo "Setting NIS, with domain '$NIS_Domain'"
domainname "$NIS_Domain"