W2K can't join samba pdc domain : "Interface unknown"

Diego Cimarosa dcimaro at ipruniv.cce.unipr.it
Thu May 23 12:19:10 GMT 2002


I have a lab with 27 Windows 98 clients perfectly working with samba 2.2.4
and Linux Read Hat 5.2 (!!!)
But I can't join with Windows 2000 client ...

The strange thing is that I can browse and use shared directories with no
problems (Windows 2000 prompt with a user and password "Login as " box and i
can access as a normal user) but when I try to change from workgroup to
domain in Network Proprierties and login as root I got, after 50seconds :
"Interface unknown".

I've traced the error "samr_io_userinfo_ctr: unknown switch level 0x1a" and
the patch in rpc_server/srv_samr.c seems working because it exit with a TRUE
value ...

On client side, in the event logger, I see an error (more or less ...
translated from italian W2K version):

Network Service Access ended with error :
Network access is not a valid Win32 application

I think is something related to lmss.exe ... but nothing more ...


PLEASE PLEASE PLEASE PLEASE  ....

HH EE LL PP !!!!!

thanks everybody!

ciao!

(i've been trying for two weeks ... more or less 3/4 hours per day ... so
many configurations ... !!!)

@@@@@@@@@    LOG.NMBD @@@@@@@@

[2002/05/23 13:33:09, 0] nmbd/nmbd.c:main(794)
  Netbios nameserver version 2.2.4 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2002
[2002/05/23 13:33:09, 0] lib/debug.c:debug_message(259)
  INFO: Debug class all level = 2   (pid 23855 from pid 23855)
[2002/05/23 13:33:09, 2] nmbd/nmbd.c:main(832)
  Becoming a daemon.
[2002/05/23 13:33:09, 0] nmbd/asyncdns.c:start_async_dns(148)
  started asyncdns process 23858
[2002/05/23 13:33:09, 2] lib/interface.c:add_interface(81)
  added interface ip=160.78.93.100 bcast=160.78.93.255 nmask=255.255.255.0
[2002/05/23 13:33:09, 2] nmbd/nmbd_subnetdb.c:make_subnet(192)
  making subnet name:160.78.93.100 Broadcast address:160.78.93.255 Subnet
mask:255.255.255.0
[2002/05/23 13:33:09, 2] nmbd/nmbd_subnetdb.c:make_subnet(192)
  making subnet name:UNICAST_SUBNET Broadcast address:160.78.93.100 Subnet
mask:160.78.93.100
[2002/05/23 13:33:09, 2] nmbd/nmbd_subnetdb.c:make_subnet(192)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0
Subnet mask:0.0.0.0
[2002/05/23 13:33:09, 2] nmbd/nmbd_subnetdb.c:make_subnet(192)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet
mask:0.0.0.0
[2002/05/23 13:33:09, 2] nmbd/nmbd_winsserver.c:initialise_wins(184)
  initialise_wins: Can't open wins database file wins.dat. Error was No such
file or directory
[2002/05/23 13:33:09, 0] nmbd/nmbd_logonnames.c:add_logon_names(155)
  add_domain_logon_names:
  Attempting to become logon server for workgroup LABGIURI on subnet
160.78.93.100
[2002/05/23 13:33:09, 2] nmbd/nmbd_logonnames.c:become_logon_server(126)
  become_logon_server: Atempting to become logon server for workgroup
LABGIURI on subnet 160.78.93.100
[2002/05/23 13:33:09, 0] nmbd/nmbd_logonnames.c:add_logon_names(155)
  add_domain_logon_names:
  Attempting to become logon server for workgroup LABGIURI on subnet
UNICAST_SUBNET
[2002/05/23 13:33:09, 2] nmbd/nmbd_logonnames.c:become_logon_server(126)
  become_logon_server: Atempting to become logon server for workgroup
LABGIURI on subnet UNICAST_SUBNET
[2002/05/23 13:33:09, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(339)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup LABGIURI, subnet
UNICAST_SUBNET.
[2002/05/23 13:33:09, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(354)
  become_domain_master_browser_wins: querying WINS server at IP
160.78.93.100 for domain master browser name LABGIURI<1b> on workgroup
LABGIURI
[2002/05/23 13:33:09, 0]
nmbd/nmbd_logonnames.c:become_logon_server_success(114)
  become_logon_server_success: Samba is now a logon server for workgroup
LABGIURI on subnet UNICAST_SUBNET
[2002/05/23 13:33:09, 2]
nmbd/nmbd_become_dmb.c:become_domain_master_stage1(178)
  become_domain_master_stage1: Becoming domain master browser for workgroup
LABGIURI on subnet UNICAST_SUBNET
[2002/05/23 13:33:09, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_stage2(114)
  *****

  Samba server LINUX is now a domain master browser for workgroup LABGIURI
on subnet UNICAST_SUBNET

  *****
[2002/05/23 13:33:09, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(291)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup LABGIURI on subnet
160.78.93.100
[2002/05/23 13:33:09, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(305)
  become_domain_master_browser_bcast: querying subnet 160.78.93.100 for
domain master browser on workgroup LABGIURI
[2002/05/23 13:33:13, 0]
nmbd/nmbd_logonnames.c:become_logon_server_success(114)
  become_logon_server_success: Samba is now a logon server for workgroup
LABGIURI on subnet 160.78.93.100
[2002/05/23 13:33:13, 2]
nmbd/nmbd_become_dmb.c:become_domain_master_stage1(178)
  become_domain_master_stage1: Becoming domain master browser for workgroup
LABGIURI on subnet 160.78.93.100
[2002/05/23 13:33:13, 0]
nmbd/nmbd_responserecordsdb.c:find_response_record(235)
  find_response_record: response packet id 19849 received with no matching
record.
[2002/05/23 13:33:13, 0]
nmbd/nmbd_responserecordsdb.c:find_response_record(235)
  find_response_record: response packet id 19850 received with no matching
record.
[2002/05/23 13:33:13, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:13, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:15, 2] nmbd/nmbd_elections.c:send_election_dgram(43)
  send_election_dgram: Sending election packet for workgroup LABGIURI on
subnet 160.78.93.100
[2002/05/23 13:33:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:17, 2] nmbd/nmbd_elections.c:send_election_dgram(43)
  send_election_dgram: Sending election packet for workgroup LABGIURI on
subnet 160.78.93.100
[2002/05/23 13:33:17, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_stage2(114)
  *****

  Samba server LINUX is now a domain master browser for workgroup LABGIURI
on subnet 160.78.93.100

  *****
[2002/05/23 13:33:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x7
[2002/05/23 13:33:18, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:18, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12
[2002/05/23 13:33:20, 2] nmbd/nmbd_elections.c:send_election_dgram(43)
  send_election_dgram: Sending election packet for workgroup LABGIURI on
subnet 160.78.93.100
[2002/05/23 13:33:22, 2] nmbd/nmbd_elections.c:send_election_dgram(43)
  send_election_dgram: Sending election packet for workgroup LABGIURI on
subnet 160.78.93.100
[2002/05/23 13:33:24, 2] nmbd/nmbd_elections.c:send_election_dgram(43)
  send_election_dgram: Sending election packet for workgroup LABGIURI on
subnet 160.78.93.100
[2002/05/23 13:33:24, 2] nmbd/nmbd_elections.c:run_elections(208)
  run_elections: >>> Won election for workgroup LABGIURI on subnet
160.78.93.100 <<<
[2002/05/23 13:33:24, 2]
nmbd/nmbd_become_lmb.c:become_local_master_browser(549)
  become_local_master_browser: Starting to become a master browser for
workgroup LABGIURI on subnet 160.78.93.100
[2002/05/23 13:33:32, 0]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
  *****

  Samba name server LINUX is now a local master browser for workgroup
LABGIURI on subnet 160.78.93.100

  *****
[2002/05/23 13:33:32, 2]
nmbd/nmbd_browsesync.c:announce_local_master_browser_to_domain_master_browse
r(118)
  announce_local_master_browser_to_domain_master_browser:
  We are both a domain and a local master browser for workgroup LABGIURI.
Do not announce to ourselves.
[2002/05/23 13:33:32, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(157)
  sync_with_dmb:
  Initiating sync with domain master browser LINUX<20> at IP 160.78.93.100
for workgroup LABGIURI
[2002/05/23 13:34:21, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12 @@@@@@@@ IS
THIS A BUG ???
[2002/05/23 13:34:21, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x12 @@@@@@@@ IS
THIS A BUG ???
[2002/05/23 13:34:21, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 160.78.93.131: code = 0x7




@@@@@@@  /usr/local/samba/private/smbpasswd EXTRACT @@@@@@@

root:0:D088F6514A6B6E68E68AA26A841A86FA:467FBBB5C266F912DB3E8045C9BAA7CC:[UX
         ]:LCT-3CECD083:
pclabgiuri23$:1723:10332205BFE3C612E98C3945F928AE1E:0E1E921277BE6A6403480CBC
23AB67FF:[DW         ]:LCT-3CECD3FE:




@@@@@@@@@@@@@ LOG.WINDOWS 2000 CLIENT @@@@@@@

[2002/05/23 13:33:19, 2] lib/access.c:check_access(329)
  Allowed connection from  (160.78.93.131)
[2002/05/23 13:33:19, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2050)
  Returning domain sid for domain LABGIURI ->
S-1-5-21-462040359-1077694541-2412441076
[2002/05/23 13:33:20, 2] rpc_parse/parse_samr.c:samr_io_userinfo_ctr(6300)
  samr_io_userinfo_ctr: unknown switch level 0x1a
[2002/05/23 13:33:20, 0] rpc_server/srv_samr.c:api_samr_set_userinfo(670)
  api_samr_set_userinfo: Unable to unmarshall SAMR_Q_SET_USERINFO.
[2002/05/23 13:35:27, 2] smbd/server.c:exit_server(461)
  Closing connections


@@@@@@@@@@@ SMB.CONF @@@@@@@@@ò

#======================= Global Settings
=====================================
[global]
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
 domain logons = Yes
 domain master = yes
 encrypt passwords = Yes
 guest ok = No
 guest only = No
 hosts allow = 160.78.93. 160.78.92. 127.
 local master = Yes
 lock dir = /usr/local/samba/var/locks
 log file = /usr/local/samba/var/log.%m
 log level = 2
  logon drive = H:
 logon home = \\%N\%U
 logon path = \\%N\%U
 logon script = %m.bat
 name resolve order = host wins lmhosts bcast
 netbios name = linux
 pid directory = /usr/local/samba/var/locks
 preferred master = yes
    security = user
 security mask = 0777
 server string = Linux Red Hat - Samba Server %v
 smb passwd file = /usr/local/samba/private/smbpasswd
 wins proxy = No
 wins support = Yes
 workgroup = labgiuri
#============================ Share Definitions
==============================
[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   create mask = 0700
   directory mask = 0700
   guest ok = no

# Un-comment the following and create the netlogon directory for Domain
Logons
 [netlogon]
   comment = Network Logon Service
   path = /usr/local/samba/netlogon/scripts
   guest ok = no
   writable = no
   share modes = no
   root preexec  = "/root/dologin %u C %m"
   root postexec = "/root/dologin %u D %m"

[shared]
   comment = Directory condivisa sul Server Linux
   path = /shared
   public = yes
   read only = no
   writable = yes

[ftp]
   comment = FTP Pubblico
   path = /ftp
   public = yes
   read only = yes
   writable = yes







More information about the samba-docs mailing list