[Vserver] samba works but netlogon script isn't run

From: Benedict <linux4bene_at_telenet.be>
Date: Sun 16 Jul 2006 - 23:33:54 BST
Message-ID: <44BABED2.7040400@telenet.be>

Hi,

I moved my samba to a vserver. My smb.conf is attached below.
Samba works ok, i can see my drives & i can access the drives
like \\hel\benedict from my windows xp machine to.

The only problem i have and that is different from when samba was
running on the host, is that the netlogon isn't working.
My logon script isn't run anymore. With the same config (well, i have to
change the hostnames & ip's) it works when run from the host.

I'm fairly certain it has to do with how i set up the ips.
I've tried the following scenarios and i couldn't get it to work. All
configs are related to the interfaces directory.
Host has 2 ip's, eth0 192.168.0.2 & eth1 192.168.1.1.
eth1 deals with the lan so this is the important network for samba.

1. 1 interface only
0:
ip: 192.168.1.26
dev: eth1
name: hel
bcast: 192.168.1.255
prefix: 24

As i said, it all works except the logon isn't working (the samba
machine even shows up in the networkneighborhood after a while)

2. 2 interfaces, local first, then broadcast
0:
ip: 192.168.1.26
dev: eth1
name: hel
bcast: 192.168.1.255
prefix: 24

1:
ip: 192.168.1.255
nodev: empty

I couldn't even logon to the domain anymore.

3. 2 interfaces, broadcast first, then local
0:
ip: 192.168.1.255
nodev: empty

1:
ip: 192.168.1.26
dev: eth1
name: hel
bcast: 192.168.1.255
prefix: 24

smbclient in vserver hel only worked when using the ip address of the
server instead of the name to connect.
Logon to the domain worked but again no logon script that ran.

iptables lets all through that needs to go through so that isn't the
problem. I even tried to set bcapabilites for testing and that didn't
solve a thing.

Any ideas?

Thanks,
Benedict

================8<=============8<==============8<==================
[global]
   panic action = /usr/share/samba/panic-action %d
   workgroup = FIRM
   netbios name = HEL
   server string = %L
   socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

   os level = 64
   preferred master = yes
   local master = yes
   domain master = yes
   wins support = yes
   hide unreadable = yes
   time server = yes
   syslog = 0
   dns proxy = no

   security = user
   encrypt passwords = true
   domain logons = yes
   log file = /var/log/samba/log.%m
   log level = 3 passdb:5 auth:10 winbind:2
   max log size = 150
   hosts allow = 127.0.0.1 192.168.1.1 192.168.1.10
192.168.1.0/255.255.255.0
   interfaces = eth1 192.168.1.26
   bind interfaces only = yes
   add user script = /root/scripts/create-machine-account.sh %u
   allow pasword changes
   unix password sync = yes
   admin users = benedict
   logon home = \\%L\%U\.profile
   logon drive = C:
   logon script = logon.bat
   logon drive = I:

   ldap admin dn = cn=admin,dc=firm,dc=be
   ldap suffix = dc=firm,dc=be
   ldap machine suffix = ou=People
   ldap group suffix = ou=Group
   ldap user suffix = ou=People
   ldap server = 192.168.1.26
   ldap passwd sync = yes
   ldap timeout = 10
   add user script = /usr/local/sbin/create-machine-account.sh %u
   passdb backend = ldapsam:ldap://192.168.1.26:389
        
[homes]
   comment = Home Directories
   browseable = no
   writeable = yes
   create mask = 0700
   directory mask = 0700

[netlogon]
   path = /home/netlogon
   read only = yes
   write list = benedict

================8<=============8<==============8<==================
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Jul 16 23:34:48 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 16 Jul 2006 - 23:34:54 BST by hypermail 2.1.8