summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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;