Author: jsuchome
Date: Mon Jun 8 15:06:03 2009
New Revision: 57495
URL: http://svn.opensuse.org/viewcvs/yast?rev=57495&view=rev
Log:
- correctly read set domain specific broadcast (bnc#503184)
- 2.18.0
Modified:
trunk/nis-client/VERSION
trunk/nis-client/package/yast2-nis-client.changes
trunk/nis-client/src/Nis.ycp
Modified: trunk/nis-client/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/nis-client/VERSION?rev=57495&r1=57494&r2=57495&view=diff
==============================================================================
--- trunk/nis-client/VERSION (original)
+++ trunk/nis-client/VERSION Mon Jun 8 15:06:03 2009
@@ -1 +1 @@
-2.17.7
+2.18.0
Modified: trunk/nis-client/package/yast2-nis-client.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/nis-client/package/yast2-nis-client.changes?rev=57495&r1=57494&r2=57495&view=diff
==============================================================================
--- trunk/nis-client/package/yast2-nis-client.changes (original)
+++ trunk/nis-client/package/yast2-nis-client.changes Mon Jun 8 15:06:03 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Jun 8 10:17:49 CEST 2009 - jsuchome@suse.cz
+
+- correctly read set domain specific broadcast (bnc#503184)
+- 2.18.0
+
+-------------------------------------------------------------------
Wed Jan 14 11:58:34 CET 2009 - jsuchome@suse.cz
- no exit confirmation popup if no changes were made (bnc#458319)
Modified: trunk/nis-client/src/Nis.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/nis-client/src/Nis.ycp?rev=57495&r1=57494&r2=57495&view=diff
==============================================================================
--- trunk/nis-client/src/Nis.ycp (original)
+++ trunk/nis-client/src/Nis.ycp Mon Jun 8 15:06:03 2009
@@ -109,6 +109,15 @@
*/
global map multidomain_broadcast = $[];
+ /**
+ * If this option is set, ypbind will ignore /etc/yp.conf and use
+ * a broadcast call to find a NIS server in the local subnet. You
+ * should avoid to use this, it is a big security risk.
+ * @see multidomain_broadcast
+ * @see default_broadcast
+ */
+ global boolean global_broadcast = false;
+
global map slp_domain = $[];
// netconfig policy
@@ -194,12 +203,16 @@
}
else if (value["DOMAIN"]:nil == "broadcast")
{
- default_broadcast = true;
+ global_broadcast = true;
}
else if (value["DOMAIN"]:"" != "")
{
if (value["SERVERS"]:nil == "broadcast")
{
+ if (key == "0")
+ {
+ default_broadcast = true;
+ }
multidomain_broadcast[value["DOMAIN"]:""] = true;
}
else if (value["SERVERS"]:nil == "slp")
@@ -348,6 +361,20 @@
{
if (cnt == 0)
{
+ SCR::Write(.sysconfig.network.config.NETCONFIG_NIS_STATIC_DOMAIN, domain);
+ SCR::Write(.sysconfig.network.config.NETCONFIG_NIS_STATIC_SERVERS, "broadcast");
+ }
+ else
+ {
+ SCR::Write(add(.sysconfig.network.config, "NETCONFIG_NIS_STATIC_DOMAIN_"+cnt), domain);
+ SCR::Write(add(.sysconfig.network.config, "NETCONFIG_NIS_STATIC_SERVERS_"+cnt), "broadcast");
+ }
+ cnt = cnt + 1;
+ }
+ else if (global_broadcast == true)
+ {
+ if (cnt == 0)
+ {
SCR::Write(.sysconfig.network.config.NETCONFIG_NIS_STATIC_DOMAIN, "broadcast");
SCR::Write(.sysconfig.network.config.NETCONFIG_NIS_STATIC_SERVERS, "");
}
@@ -418,14 +445,6 @@
*/
global boolean local_only = false;
- /**
- * If this option is set, ypbind will ignore /etc/yp.conf and use
- * a broadcast call to find a NIS server in the local subnet. You
- * should avoid to use this, it is a big security risk.
- * @see multidomain_broadcast
- * @see default_broadcast
- */
- global boolean global_broadcast = false;
/**
* You should set this to "yes" if you have a NIS server in your
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org