Click to See Complete Forum and Search --> : NMBD logging


mevi
06-19-2002, 12:54 PM
Hello,

I'm trying to let Samba act as an PDC. Connecting with a Windws2000 machine to Samba gives me an error like :

"the domain does not exist or could not be contacted".

I followed the steps of the Samba-Howto-PDC manual exactly.

Looking at the NMBD logfile shows the next messages:


[2002/06/19 17:17:00, 0] nmbd/nmbd_logonnames.c:add_logon_names(156) add_domain_logon_names: Attempting to become logon server for workgroup ATHOME on subnet UNICAST_SUBNET
[2002/06/19 17:17:00, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_win s(339) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup ATHOME, subnet UNICAST_SUBNET.
[2002/06/19 17:17:00, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_win s(354) become_domain_master_browser_wins: querying WINS server at IP 192.168.42.15 for domain master browser name ATHOME<1b> on workgroup ATHOME
[2002/06/19 17:17:00, 0] nmbd/nmbd_incomingrequests.c :process_name_registration_request(230) process_name_registration_request: unicast name registration request received for name ATHOME<1c> from IP 192.168.42.15 on subnet UNICAST_SUBNET. Error - should be sent to WINS server
[2002/06/19 17:17:00, 0] nmbd/nmbd_nameregister.c:register_name_response(109) register_name_response: server at IP 192.168.42.15 rejected our name registration of ATHOME<1c> with error code 1.
[2002/06/19 17:17:00, 0] nmbd/nmbd_logonnames.c:become_logon_server_fail(68) become_logon_server_fail: Failed to become a domain master for workgroup ATHOME on subnet UNICAST_SUBNET. Couldn't register name ATHOME<1c>.
[2002/06/19 17:17:00, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(290) standard_fail_register: Failed to register/refresh name ATHOME<1c> on subnet UNICAST_SUBNET
[2002/06/19 17:17:00, 0] nmbd/nmbd_become_dmb.c:become_domain_master_query_fail( 259) become_domain_master_query_fail: Error 0 returned when querying WINS server for name ATHOME<1b>.


[2002/06/19 17:17:03, 0] nmbd/nmbd_incomingrequests.c :process_name_refresh_request(183) process_name_refresh_request: unicast name registration request received for name PRIVE<00> from IP 192.168.42.16 on subnet UNICAST_SUBNET.
[2002/06/19 17:17:03, 0] nmbd/nmbd_incomingrequests.c :process_name_refresh_request(184) Error - should be sent to WINS server
[2002/06/19 17:17:03, 0] nmbd/nmbd_incomingrequests.c :process_name_refresh_request(183) process_name_refresh_request: unicast name registration request received for name IS~WIN2KA<00> from IP 192.168.42.16 on subnet UNICAST_SUBNET.
[2002/06/19 17:17:03, 0] nmbd/nmbd_incomingrequests.c :process_name_refresh_request(184) Error - should be sent to WINS server

Does somebody knows:
1. What is the reason I get these messages?
2. Could this be the reason why I can't get Samba acting as an PDC?

Thanks in advance,

Mevi

michaelk
06-19-2002, 03:32 PM
A posting of your samba config file might shed some light.

mevi
06-19-2002, 06:45 PM
Here is an extraction of my conf file:

[global]
workgroup = ATHOME.NL
wins server = 192.168.42.15
server string = %h SuSE Linux 8.0 (Samba %v)
security = USER
status = yes
preserve case = yes
case sensitive = no
short preserve case= yes
encrypt passwords = yes
update encrypted = yes
unix password sync = no
password server = srvlin
domain admin group = @admin
domain logons = yes
logon script = logon.bat
logon home = \\SRVLIN01\home\%U
os level = 65
domain master = yes
local master = yes
preferred master = yes



[netlogon]
path = /home/netlogon
public = no
read only = yes
write list = @admin



[homes]
browseable = no
writeable = yes
public = no
create mask = 0775
directory mask = 0750
create mode = 0750
locking = no

Greetings,

Mevi

cowanrl
06-22-2002, 05:02 PM
NMBD is the part of Samba that handles all NetBIOS name resolution issues. It responds to NetBIOS broadcasts for it's own name. It can also act as a Domain Master Browser on the network and can act as a WINS server.

You have your workgroup set as ATHOME.NL. While that is a legal NetBIOS name it looks like it could be causing problems. What do you actually have the workgroup or Windows domain name set to on your Windows machines? The error messages never refer to the workgroup for the Samba machine as ATHOME.NL, just ATHOME. If you have your Windows machines set as ATHOME.NL for the workgroup and or Windows domain name, it doesn't look like it's going to work. If you can, try to drop the .NL from the workgroup and or Windows domain name.

You've set up your WINS server as 192.168.42.15. Your WINS server at 192.168.42.15 is sending requests directly to your Samba server for name registration requests for ATHOME. Your Samba server is responding that the name registration request should be sent directly to the WINS server.
The machine at 192.168.42.16 is also sending NetBIOS name request type packets directly to your Samba server instead of to the WINS server at 192.168.42.15. Your Samba server is rejecting them. It's saying that the requests should be sent directly to the WINS server which they should be.

There's definitely a lot of confusion on your network. First, I'd try changing the workgroup name to just ATHOME if you can. Second, make sure your Windows machines have the proper setting for a WINS server. You're telling your Samba server to go to 192.168.42.15 as the WINS server, the Windows machines need to have the same setting.


Try these links for some help on setting up Samba as a PDC
http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=13&t=006441
http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=12&t=000681

mevi
06-23-2002, 05:10 AM
Thanks,

I will make the changes.

Mevi