You might want to upgrade to a newer version of samba. This works for
me with samba 2.2.4 and 2.2.6

D. Joe Anderson wrote:
Hi,

The documentation I've read indicates that I should be able to get Samba to
honor the value of the 'workgroup' variable as set from within an included
virtual server configuration file.

Given the configuration files below, if I comment out the
"workgroup = testwg"
line from the main configuration file (smb.conf), then a query of
the Samba server (with "smbclient -L test4 -U%") shows the server as being
in the WORKGROUP workgroup, rather than the TESTWG workgroup that I specify
in conf.test4. The server still responds, however, to the TEST4 netbios
name as specified in the included conf.test4 file.

The only thing I can see that might be amiss is the line

Can't find include file /etc/samba/conf.
When I run smbclient.

I would appreciate any pointers as to how I might get the workgroup setting
within the included file to be recognized.

--Joe


(If anyone is wondering why I bother with the 'netbios alias' line for just
one netbios name, I tried this with three netbios aliases, expecting it to
Just Work. This is a simplified example. If we can get this to work, I'll
work my way back up ;-)

$uname -a
Linux xxx.xxx.iastate.edu 2.2.19-7.0.1 #1 Tue Apr 10 00:55:03 EDT 2001
i686 unknown

# rpm -q samba
samba-2.2.2-20011013


# cat smb.conf

# Global parameters
[global]
workgroup = testwg
netbios aliases = test4
include = /etc/samba/conf.%L



# cat conf.test4
[global]
workgroup = TESTWG
netbios name = TEST4
os level = 128
domain master = yes
local master = yes
preferred master = yes
security = user
status = yes
encrypt passwords = Yes
update encrypted = Yes
password level = 8
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%L
log level = 4
max log size = 50
dns proxy = No
wins server = xxx.xxx.xxx.xxx
wins proxy = yes
guest account = ftp

From the test4 log:
     135 [2001/12/06 17:42:50, 3] param/params.c:pm_process(579)
     136   params.c:pm_process() - Processing configuration file
"/etc/samba/smb
     136 .conf"
     137 [2001/12/06 17:42:50, 3] param/loadparm.c:do_section(2884)
     138   Processing section "[global]"
     139   doing parameter netbios aliases = webtest4
     140   doing parameter include = /etc/samba/conf.%L
     141 [2001/12/06 17:42:50, 3] param/params.c:pm_process(579)
     142   params.c:pm_process() - Processing configuration file
"/etc/samba/con
     142 f.webtest4"
     143 [2001/12/06 17:42:50, 3] param/loadparm.c:do_section(2884)
     144   Processing section "[global]"
     145   doing parameter workgroup = WEBTESTWG
     146   doing parameter netbios name = WEBTEST4
     147 [2001/12/06 17:42:50, 4] param/loadparm.c:handle_netbios_name(2251)
     148   handle_netbios_name: set global_myname to: WEBTEST4
     149   doing parameter os level = 128
     150   doing parameter domain master = yes

# smbclient -L test4 -U% | less
Can't find include file /etc/samba/conf.
added interface ip=129.186.xxx.6 bcast=129.186.xxx.255 nmask=255.255.255.0
added interface ip=129.186.yyy.138 bcast=129.186.yyy.255 nmask=255.255.255.0
Got a positive name query response from 129.186.xxx.6 ( 129.186.xxx.6 )
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.2]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$           IPC       IPC Service (Samba 2.2.2)
        ADMIN$         Disk      IPC Service (Samba 2.2.2)

        Server               Comment
        ---------            -------
        TEST4                Samba 2.2.2
        ANOTHERHOST          Samba 2.2.2

        Workgroup            Master
        ---------            -------
        WORKGROUP



--
======================================================================
Herb Lewis                               Silicon Graphics
Networking Engineer                      1600 Amphitheatre Pkwy MS-510
Strategic Software Organization          Mountain View, CA  94043-1351
[EMAIL PROTECTED]                             Tel: 650-933-2177
http://www.sgi.com                       Fax: 650-932-2177
PGP Key: 0x8408D65D
======================================================================

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to