summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-09-28 08:00:07 +0000
committerRichard Sharpe <sharpe@samba.org>1998-09-28 08:00:07 +0000
commit2d87954bc06b5c7cb50f11e12c112d7c1d7a5a99 (patch)
treea71b02c3f2237ae865bf9d840a9e3ee1ef528aa3 /source3/param/loadparm.c
parentcf971f88ac188eec353a7fb021744b8076cc4eb7 (diff)
downloadsamba-2d87954bc06b5c7cb50f11e12c112d7c1d7a5a99.tar.gz
samba-2d87954bc06b5c7cb50f11e12c112d7c1d7a5a99.tar.bz2
samba-2d87954bc06b5c7cb50f11e12c112d7c1d7a5a99.zip
Make sure that WINS Server = 127.0.0.1 in case we
do not set a value in smb.conf. This will be the case if we are a WINS server, or if we don't know what we are doing. The result is that smbclient can access a WINS server if it is running on the same machine as the WINS server (This used to be commit a3439986666c33f352c863a8baae766323aea7b1)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 15bc22de2a..8e222f5da5 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -809,7 +809,9 @@ static void init_globals(void)
/* %N is the NIS auto.home server if -DAUTOHOME is used, else same as %L */
string_set(&Globals.szLogonHome, "\\\\%N\\%U");
string_set(&Globals.szLogonPath, "\\\\%N\\%U\\profile");
-
+ /* Set szWINSserver to 127.0.0.1 so that we have something reasonable */
+ /* in case it is not set in the smb.conf */
+ string_set(&Globals.szWINSserver, "127.0.0.1");
string_set(&Globals.szNameResolveOrder, "lmhosts host wins bcast");
Globals.bLoadPrinters = True;