OpenBSD: Samba 2.2.1a - Netlogon Win2k Clients No Go?!?

OpenBSD: Samba 2.2.1a - Netlogon Win2k Clients No Go?!?

Post by fear » Sat, 06 Apr 2002 16:57:33



Currently I'm running Samba version 2.2.1a on OpenBSD 3 freshly installed
from the ports tree.  Everything seems to be working as per advertised.

I am able to browse the computers on my subnet, connect/disconnect shares,
copy/move/delete files in mounted and unmounted shares, clients home
directories connect at login perfectly.  The only thing that I have been
racking my brain over is getting netlogin to work correctly in Win2k.

I know, I have heard whining in this newsgroup before about Netlogin not
working properly with people that exec .bat files but I'm trying to run a
perl script that dynamically creates a .bat file based on some arguments
that get passed to it.  From what I can see the batch file gets created
alright with "username.bat" and deleted like it should but from the login
screen on the win2k box it never uses the batch file.. system time doesn't
change and no group shares are mapped..  I've just about pulled all my known
hair that is left out to get this to work even eliminating lines from my
config and moving them around to see if it would make a difference..

any suggestions would be appreciated as I've compleatly exausted every known
piece of knowlege in my cranium..   Has anyone experenced these problem with
2.2.3a and if not is the only fix to upgrade?

------dmseg------

OpenBSD 3.0-stable (GENERIC) #0: Wed Apr  3 23:48:40 MST 2002

cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class, 128KB L2
cache) 902 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,
SIMD
real mem  = 536457216 (523884K)
avail mem = 359583744 (351156K)
using 5689 buffers containing 161562624 bytes (157776K) of memory
mainbus0 (root)

apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown


pcibios0: PCI Exclusive IRQs: 10 11 12
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB PCI-ISA" rev
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 GM" rev 0x27
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL CR13.0A>
wd0: 16-sector PIO, LBA, 12416MB, 16383 cyl, 16 head, 63 sec, 25429824
sectors
wd1 at pciide0 channel 0 drive 1: <MAXTOR 4K040H2>
wd1: 16-sector PIO, LBA, 38182MB, 16383 cyl, 16 head, 63 sec, 78198750
sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd2 at pciide0 channel 1 drive 0: <MAXTOR 4K040H2>
wd2: 16-sector PIO, LBA, 38182MB, 16383 cyl, 16 head, 63 sec, 78198750
sectors
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
"Intel 82371AB USB" rev 0x01 at pci0 dev 7 function 2 not configured
"Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not configured
xl0 at pci0 dev 11 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 10
address 00:50:04:12:bf:35
exphy0 at xl0 phy 24: 3Com internal media interface
xl1 at pci0 dev 13 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 11
address 00:50:04:7b:4b:e8
exphy1 at xl1 phy 24: 3Com internal media interface
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
biomask c000 netmask cc00 ttymask cc02
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
dkcsum: wd2 matched BIOS disk 82
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
altq: CPU clock: 902059005Hz

------smb.conf------

[global]

# security and logging
   interfaces = 192.168.1.0/24
   hosts allow = 192.168.1.
   log file = /var/log/smbd.%m
   max log size = 50
   security = user
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   max smbd processes = 25

# performance options
   socket options = TCP_NODELAY SO_RCVBUF=14596 SO_SNDBUF=14596
   write cache size = 2097152

# wins and domain options
   workgroup = slack
   server string = itchy
   os level = 65
   local master = yes
   wins support = yes
   domain master = yes
   preferred master = yes
   domain logons = yes
   time server = yes

# luser options
   logon drive = H:
   logon home = \\%L\%U
   logon script = %U.bat
   logon path = \\%L\Profiles\.pds

# all shares available on this server

[netlogon]
   comment = netlogon
   path = /etc/samba/netlogon
   root preexec = /etc/samba/netlogon/logon.pl %U %G %L
   root postexec = rm /etc/samba/netlogon/%U.bat
   guest ok = yes
   read only = yes
   browseable = no

[profiles]
   path = %H
   read only = no
   writeable = yes
   Guest ok = yes
   dos filetimes = yes
   browseable = no

[homes]
   comment = Home Directory
   path = %H
   username = %S
   valid users = %S
   create mask = 0700
   directory mask = 0700
   read only = no
   level2 oplocks = yes
   dos filetimes = yes
   only user = yes
   browseable = no

[slack]
   comment = Group Directory
   path = /home/slack

   create mask = 0660
   directory mask = 0770
   force group = slack
   force create mode = 0660
   force directory mode = 0770
   read only = no
   writable = yes
   level2 oplocks = yes
   dos filetimes = yes
   browseable = no

---- logon.pl ----

#! /usr/bin/perl

open LOGON, ">/etc/samba/netlogon/$ARGV[0].bat";

# turn off screen echo and set machine time to utc.

    print LOGON "NET TIME \\\\$ARGV[2] /SET /YES\r\n";

# map to keep netlogon connected during the whole session
    print LOGON "NET USE Y: \\\\$ARGV[2]\\NETLOGON\r\n";

# map common home dirs and shares based on primary group
    print LOGON "NET USE H: \\\\$ARGV[2]\\$ARGV[0]\r\n";
    print LOGON "NET USE K: \\\\$ARGV[2]\\slack\r\n";

close LOGON;

 
 
 

1. win2k to samba 2.2.1a printing

I am having trouble with win2k to print to samba2.2.1a my printer is hooked
up local to my Linux box. I install printing for wink2. After in install I
get can not connect access denied. Can any one tell me what the problem is.
Do I need to upgrade to a newer version. Well I have tried that but when I
upgrade to 2.2.5-102. When I install samba client 2.2.5-102 I get an error
saying that samba-client = 2.2.1a is needed by samba-2.2.1a-32

Can anyone have any idea how to fix this.

Thanks
Darnell

2. Best AGP card for FS98

3. Samba 2.2.1a PDC and Win2k Server

4. zoltrix & callback service

5. samba 2.2.1a & Win2K SP1/SP2

6. CONFERENCE-ON-PRAGMATICS-IN-AI

7. URGENT! SAMBA 2.2.1a errors under Win2k

8. Where is that registry key?

9. Win2K & Samba 2.2.1a PLEASE HELP!!!!

10. HELP! speed difference Win2k sp2 samba 2.2.1a

11. Samba 2.2.1a PDC/Win2k - Problems joining domain

12. Samba 2.2.1a -- Win2k -- File Ownership

13. Samba 2.2.1a -- Win2k -- Administrator members