Mailinglist Archive: yast-commit (477 mails)

< Previous Next >
[yast-commit] r57497 - in /branches/SuSE-Code-11-Branch/nis-client: VERSION package/yast2-nis-client.changes src/Nis.ycp
  • From: jsuchome@xxxxxxxxxxxxxxxx
  • Date: Mon, 08 Jun 2009 13:16:20 -0000
  • Message-id: <E1MDei4-0000yr-96@xxxxxxxxxxxxxxxx>
Author: jsuchome
Date: Mon Jun 8 15:16:19 2009
New Revision: 57497

URL: http://svn.opensuse.org/viewcvs/yast?rev=57497&view=rev
Log:
- correctly read set domain specific broadcast (bnc#503184)
- 2.17.8


Modified:
branches/SuSE-Code-11-Branch/nis-client/VERSION
branches/SuSE-Code-11-Branch/nis-client/package/yast2-nis-client.changes
branches/SuSE-Code-11-Branch/nis-client/src/Nis.ycp

Modified: branches/SuSE-Code-11-Branch/nis-client/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/nis-client/VERSION?rev=57497&r1=57496&r2=57497&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/nis-client/VERSION (original)
+++ branches/SuSE-Code-11-Branch/nis-client/VERSION Mon Jun 8 15:16:19 2009
@@ -1 +1 @@
-2.17.7
+2.17.8

Modified:
branches/SuSE-Code-11-Branch/nis-client/package/yast2-nis-client.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/nis-client/package/yast2-nis-client.changes?rev=57497&r1=57496&r2=57497&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/nis-client/package/yast2-nis-client.changes
(original)
+++ branches/SuSE-Code-11-Branch/nis-client/package/yast2-nis-client.changes
Mon Jun 8 15:16:19 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Jun 8 10:13:22 CEST 2009 - jsuchome@xxxxxxx
+
+- correctly read set domain specific broadcast (bnc#503184)
+- 2.17.8
+
+-------------------------------------------------------------------
Thu Nov 13 16:33:43 CET 2008 - ug@xxxxxxx

- rnc file fixed

Modified: branches/SuSE-Code-11-Branch/nis-client/src/Nis.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/nis-client/src/Nis.ycp?rev=57497&r1=57496&r2=57497&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/nis-client/src/Nis.ycp (original)
+++ branches/SuSE-Code-11-Branch/nis-client/src/Nis.ycp Mon Jun 8 15:16:19 2009
@@ -109,6 +109,15 @@
*/
global map<string,boolean> 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages