diff options
author | Richard Sharpe <sharpe@samba.org> | 1998-09-28 08:00:07 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 1998-09-28 08:00:07 +0000 |
commit | a3439986666c33f352c863a8baae766323aea7b1 (patch) | |
tree | 1e0d5f1f15bdf75c1f1934762d05ea0614a8e5c9 | |
parent | 237a8e5fe62d757c04b8207cbbee4df1470cfe4e (diff) | |
download | samba-a3439986666c33f352c863a8baae766323aea7b1.tar.gz samba-a3439986666c33f352c863a8baae766323aea7b1.tar.xz samba-a3439986666c33f352c863a8baae766323aea7b1.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
-rw-r--r-- | source/param/loadparm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 15bc22de2a5..8e222f5da59 100644 --- a/source/param/loadparm.c +++ b/source/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; |