I'm trying to diagnose why my windows 10 clients can't do network browsing. The network neighborhood doesn't show any of my machines running samba. I've verified that all of my samba hosts are running nmbd! I've reached the end of my ability to debug this, so I could really use some help from the list to figure out why this isn't working. I've isolated the situation down to the simplest setup I could manage. Normally I have about 5 different machines running file shares, but I've turned all but one of them off for this investigation. The test case is: 3 Gentoo systems, 1 windows 10 system. Gentoo: dc1 is my domain controller (uses the "samba" binary, instead of smbd / nmbd / winbindd, directly) mimir is joined to the domain of dc1. Has no file shares. Runs only "nmbd" and "winbindd". Should act as the master browser for netbios. userfiles is joined to the domain of dc1, has file shares. Runs smbd, nmdb, winbindd The windows 10 system is just a windows 10 system, joined to the domain of dc1. I've used "ntbstat -a mimir" from the windows 10 machine to confirm it thinks that mimir is the network browser. I can log into the network shares without issue, but the Network browser from Windows Explorer does not show any of my samba hosts. However, it does show other things, like Google Chromecasts, Printers, and other network infrastructure. Any advice? ############################################### Samba version ############################################### 4.11.8 ############################################### DC1's config follows ############################################### [global] server role = active directory domain controller dns forwarder = 10.0.0.1 idmap_ldb:use rfc2307 = yes workgroup = NETWORK-1 realm = NETWORK-1.NET hosts allow = 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.1 fe80::/10 fd00::/8 ::1 LOCAL server min protocol = SMB3 client min protocol = SMB3 #Security settings invalid users = nobody root follow symlinks = false # The autorid map type auto-selects which UID to map to which microsoft UID. # Not entirely certain if UIDs will map properly across linux machines. Probably worth looking into. # Don't shrink the UID range, apparently some users end up with UIDs towards the max size. Unclear why. idmap config * : backend = autorid idmap config * : range = 1000000-19999999 username map = /etc/samba/user.map create mask = 0666 directory mask = 0777 allow trusted domains = no template shell = /bin/bash template homedir = /home/%U winbind use default domain = yes winbind enum users = yes winbind enum groups = yes winbind nested groups = yes ############################################### Mimir's config follows ############################################### [global] security = ADS workgroup = NETWORK-1 realm = NETWORK-1.NET #Security settings invalid users = nobody root # Waiting on Root Explorer to fix bug server min protocol = SMB2 client min protocol = SMB2 # The autorid map type auto-selects which UID to map to which microsoft UID. # Not entirely certain if UIDs will map properly across linux machines. Probably worth looking into. # Don't shrink the UID range, apparently some users end up with UIDs towards the max size. Unclear why. idmap config * : backend = autorid idmap config * : range = 1000000-19999999 username map = /etc/samba/user.map allow trusted domains = no template shell = /bin/bash template homedir = /home/%U obey pam restrictions = no kerberos method = secrets and keytab winbind use default domain = yes winbind enum users = yes winbind enum groups = yes winbind nested groups = yes winbind refresh tickets = yes winbind offline logon = yes ## # Set the amount of time to cache usernames / passwords to 30 days. # That should be long enough to reliably re-establish an internet connection # between logins. ## winbind cache time = 2592000 #Auto detection settings domain master = yes local master = yes preferred master = yes os level = 255 ############################################### Userfiles's config follows ############################################### [global] security = ADS workgroup = NETWORK-1 realm = NETWORK-1.NET #Security settings invalid users = nobody root # Waiting on Root Explorer to fix bug server min protocol = SMB2 client min protocol = SMB2 # The autorid map type auto-selects which UID to map to which microsoft UID. # Not entirely certain if UIDs will map properly across linux machines. Probably worth looking into. # Don't shrink the UID range, apparently some users end up with UIDs towards the max size. Unclear why. idmap config * : backend = autorid idmap config * : range = 1000000-19999999 username map = /etc/samba/user.map allow trusted domains = no template shell = /bin/bash template homedir = /home/%U obey pam restrictions = no kerberos method = secrets and keytab winbind use default domain = yes winbind enum users = yes winbind enum groups = yes winbind nested groups = yes winbind refresh tickets = yes winbind offline logon = yes ## # Set the amount of time to cache usernames / passwords to 30 days. # That should be long enough to reliably re-establish an internet connection # between logins. ## winbind cache time = 2592000 [Mikes_Files] comment = Mike's Files path = /media/raid/userfiles/jonesmz/ valid users = jonesmz force user = jonesmz ############################################### Log from running the "smbtree" command ############################################### mimir /var/log/samba # smbtree --user jonesmz -d10 INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Processing section "[global]" doing parameter security = ADS doing parameter workgroup = NETWORK-1 doing parameter realm = NETWORK-1.NET doing parameter log file = /var/log/samba/log.%L.%m doing parameter log level = 2 doing parameter max log size = 100 doing parameter invalid users = nobody root doing parameter server min protocol = SMB2 doing parameter client min protocol = SMB2 doing parameter client NTLMv2 auth = Yes doing parameter client lanman auth = No doing parameter client plaintext auth = No doing parameter follow symlinks = false doing parameter idmap config * : backend = autorid doing parameter idmap config * : range = 1000000-19999999 doing parameter username map = /etc/samba/user.map doing parameter allow trusted domains = no doing parameter template shell = /bin/bash doing parameter template homedir = /home/%U doing parameter obey pam restrictions = no doing parameter kerberos method = secrets and keytab doing parameter winbind use default domain = yes doing parameter winbind enum users = yes doing parameter winbind enum groups = yes doing parameter winbind nested groups = yes doing parameter winbind refresh tickets = yes doing parameter winbind offline logon = yes doing parameter winbind cache time = 2592000 doing parameter rpc_daemon:fssd = fork doing parameter registry shares = yes doing parameter include = registry doing parameter registry shares = yes registry_init_smbconf called regdb_init: registry db openend. refcount reset (1) reghook_cache_init: new tree with default ops 0x7f3d43d83140 for key [] regdb_fetch_values: Looking for values of key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] regdb_fetch_values: Looking for values of key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] regdb_fetch_values: Looking for values of key [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] regdb_unpack_values: value[0]: name[DisplayName] len[20] regdb_unpack_values: value[1]: name[ErrorControl] len[4] regdb_fetch_values: Looking for values of key [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] regdb_unpack_values: value[0]: name[DisplayName] len[20] regdb_unpack_values: value[1]: name[ErrorControl] len[4] reghook_cache_add: Adding ops 0x7f3d43d831a0 for key [\HKLM\SOFTWARE\Samba\smbconf] pathtree_add: Enter pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to tree pathtree_add: Exit regdb_close: decrementing refcount (1->0) regdb_open: registry db opened. refcount reset (1) regkey_open_onelevel: name = [HKLM] regdb_open: incrementing refcount (1->2) reghook_cache_find: Searching for keyname [\HKLM] pathtree_find: Enter [\HKLM] pathtree_find: Exit reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM] regkey_open_onelevel: name = [SOFTWARE] regdb_open: incrementing refcount (2->3) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] pathtree_find: Enter [\HKLM\SOFTWARE] pathtree_find: Exit reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE] regkey_open_onelevel: name = [Samba] regdb_open: incrementing refcount (3->4) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] pathtree_find: Enter [\HKLM\SOFTWARE\Samba] pathtree_find: Exit reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE\Samba] regkey_open_onelevel: name = [smbconf] regdb_open: incrementing refcount (4->5) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf] pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] pathtree_find: Exit reghook_cache_find: found ops 0x7f3d43d831a0 for key [\HKLM\SOFTWARE\Samba\smbconf] regdb_close: decrementing refcount (5->4) regdb_close: decrementing refcount (4->3) regdb_close: decrementing refcount (3->2) process_registry_service: service name global regkey_open_onelevel: name = [global] regdb_open: incrementing refcount (2->3) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf\global] pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] pathtree_find: Exit reghook_cache_find: found ops 0x7f3d43d831a0 for key [\HKLM\SOFTWARE\Samba\smbconf\global] key [HKLM\SOFTWARE\Samba\smbconf\global] not found regdb_close: decrementing refcount (3->2) doing parameter load printers = no doing parameter printing = bsd doing parameter printcap name = /dev/null doing parameter disable spoolss = yes doing parameter include = /etc/samba/smb_perf.conf Processing section "[global]" doing parameter strict locking = no doing parameter strict allocate = yes doing parameter min receivefile size = 16384 doing parameter use sendfile = true doing parameter include = /etc/samba/smb-%L.conf Processing section "[global]" doing parameter domain master = yes doing parameter local master = yes doing parameter preferred master = yes doing parameter os level = 255 pm_process() returned Yes lp_servicenumber: couldn't find homes added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 bcast= netmask=ffff:ffff:ffff:ffff:: added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) Opening cache file at /var/lock/samba/gencache.tdb name NETWORK-1#1D found. remove_duplicate_addrs2: looking for duplicate address/port pairs Enter NETWORK-1\jonesmz's password: Connecting to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 name_status_find: looking up *#00 at 10.0.0.2 namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR Connecting to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 ############################################### Log from running the "smbtree" command, with the broadcast flag ############################################### mimir /var/log/samba # smbtree --user jonesmz -b -d10 INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Processing section "[global]" doing parameter security = ADS doing parameter workgroup = NETWORK-1 doing parameter realm = NETWORK-1.NET doing parameter log file = /var/log/samba/log.%L.%m doing parameter log level = 2 doing parameter max log size = 100 doing parameter invalid users = nobody root doing parameter server min protocol = SMB2 doing parameter client min protocol = SMB2 doing parameter client NTLMv2 auth = Yes doing parameter client lanman auth = No doing parameter client plaintext auth = No doing parameter follow symlinks = false doing parameter idmap config * : backend = autorid doing parameter idmap config * : range = 1000000-19999999 doing parameter username map = /etc/samba/user.map doing parameter allow trusted domains = no doing parameter template shell = /bin/bash doing parameter template homedir = /home/%U doing parameter obey pam restrictions = no doing parameter kerberos method = secrets and keytab doing parameter winbind use default domain = yes doing parameter winbind enum users = yes doing parameter winbind enum groups = yes doing parameter winbind nested groups = yes doing parameter winbind refresh tickets = yes doing parameter winbind offline logon = yes doing parameter winbind cache time = 2592000 doing parameter rpc_daemon:fssd = fork doing parameter registry shares = yes doing parameter include = registry doing parameter registry shares = yes registry_init_smbconf called regdb_init: registry db openend. refcount reset (1) reghook_cache_init: new tree with default ops 0x7f09a7972140 for key [] regdb_fetch_values: Looking for values of key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] regdb_fetch_values: Looking for values of key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] regdb_fetch_values: Looking for values of key [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] regdb_unpack_values: value[0]: name[DisplayName] len[20] regdb_unpack_values: value[1]: name[ErrorControl] len[4] regdb_fetch_values: Looking for values of key [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] regdb_unpack_values: value[0]: name[DisplayName] len[20] regdb_unpack_values: value[1]: name[ErrorControl] len[4] reghook_cache_add: Adding ops 0x7f09a79721a0 for key [\HKLM\SOFTWARE\Samba\smbconf] pathtree_add: Enter pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to tree pathtree_add: Exit regdb_close: decrementing refcount (1->0) regdb_open: registry db opened. refcount reset (1) regkey_open_onelevel: name = [HKLM] regdb_open: incrementing refcount (1->2) reghook_cache_find: Searching for keyname [\HKLM] pathtree_find: Enter [\HKLM] pathtree_find: Exit reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM] regkey_open_onelevel: name = [SOFTWARE] regdb_open: incrementing refcount (2->3) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] pathtree_find: Enter [\HKLM\SOFTWARE] pathtree_find: Exit reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE] regkey_open_onelevel: name = [Samba] regdb_open: incrementing refcount (3->4) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] pathtree_find: Enter [\HKLM\SOFTWARE\Samba] pathtree_find: Exit reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE\Samba] regkey_open_onelevel: name = [smbconf] regdb_open: incrementing refcount (4->5) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf] pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] pathtree_find: Exit reghook_cache_find: found ops 0x7f09a79721a0 for key [\HKLM\SOFTWARE\Samba\smbconf] regdb_close: decrementing refcount (5->4) regdb_close: decrementing refcount (4->3) regdb_close: decrementing refcount (3->2) process_registry_service: service name global regkey_open_onelevel: name = [global] regdb_open: incrementing refcount (2->3) reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf\global] pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] pathtree_find: Exit reghook_cache_find: found ops 0x7f09a79721a0 for key [\HKLM\SOFTWARE\Samba\smbconf\global] key [HKLM\SOFTWARE\Samba\smbconf\global] not found regdb_close: decrementing refcount (3->2) doing parameter load printers = no doing parameter printing = bsd doing parameter printcap name = /dev/null doing parameter disable spoolss = yes doing parameter include = /etc/samba/smb_perf.conf Processing section "[global]" doing parameter strict locking = no doing parameter strict allocate = yes doing parameter min receivefile size = 16384 doing parameter use sendfile = true doing parameter include = /etc/samba/smb-%L.conf Processing section "[global]" doing parameter domain master = yes doing parameter local master = yes doing parameter preferred master = yes doing parameter os level = 255 pm_process() returned Yes lp_servicenumber: couldn't find homes added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 bcast= netmask=ffff:ffff:ffff:ffff:: added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1> parse_nmb: packet id = 22832 nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 answers 0 char ...... hex 80000A000002 Got a positive name query response from 10.0.0.2 ( 10.0.0.2 ) validator failed parse_nmb: packet id = 22832 nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 answers 0 char ...... hex 80000A000002 Got a positive name query response from 10.0.0.2 ( ) validator failed name_status_find: looking up *#00 at 10.0.0.2 Opening cache file at /var/lock/samba/gencache.tdb gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] and timeout=[Wed Dec 31 06:00:00 PM 1969 CST] (-1594610080 seconds in the past) namecache_status_fetch: no entry for NBT/*#00.1D.10.0.0.2 found. startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory parse_nmb: packet id = 15345 nmb packet from 10.0.0.2(35072) header: id=15345 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 answers 0 char .MIMIR hex 074D494D495220202020202020202020 answers 10 char ...MIMIR hex 0004004D494D49522020202020202020 answers 20 char ...MIMIR hex 20200304004D494D4952202020202020 answers 30 char ....__MSBRO hex 2020202020040001025F5F4D5342524F answers 40 char WSE__....NETWORK hex 5753455F5F020184004E4554574F524B answers 50 char -1 ...NETWO hex 2D312020202020200084004E4554574F answers 60 char RK-1 ...NET hex 524B2D312020202020201D04004E4554 answers 70 char WORK-1 .... hex 574F524B2D312020202020201E840000 answers 80 char ................ hex 00000000000000000000000000000000 answers 90 char ................ hex 00000000000000000000000000000000 answers a0 char ............. hex 00000000000000000000000000 MIMIR#00: flags = 0x04 MIMIR#03: flags = 0x04 MIMIR#20: flags = 0x04 __MSBROWSE__#01: flags = 0x84 NETWORK-1#00: flags = 0x84 NETWORK-1#1d: flags = 0x04 NETWORK-1#1e: flags = 0x84 gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] and timeout=[Sun Jul 12 10:25:40 PM 2020 CDT] (660 seconds ahead) namecache_status_store: entry NBT/*#00.1D.10.0.0.2 -> NETWORK-1 name_status_find: name found, name NETWORK-1 ip address is 10.0.0.2 internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) name NETWORK-1#1D found. remove_duplicate_addrs2: looking for duplicate address/port pairs found master browser NETWORK-1, 10.0.0.2 Enter NETWORK-1\jonesmz's password: Connecting to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 name_status_find: looking up *#00 at 10.0.0.2 namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR Connecting to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 Unable to find master browser by broadcast ############################################### /var/log/samba/log.MIMIR.nmbd ############################################### mimir /var/log/samba # cat log.MIMIR.nmbd [2020/07/12 21:47:18.573443, 2] ../../source3/lib/interface.c:343(add_interface) added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 bcast= netmask=ffff:ffff:ffff:ffff:: [2020/07/12 21:47:18.573706, 2] ../../source3/lib/interface.c:343(add_interface) added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 [2020/07/12 21:47:18.573905, 2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:10.0.0.2 Broadcast address:10.255.255.255 Subnet mask:255.0.0.0 [2020/07/12 21:47:18.573967, 2] ../../source3/nmbd/nmbd_subnetdb.c:299(create_subnets) create_subnets: ignoring non IPv4 interface. [2020/07/12 21:47:18.574019, 2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2020/07/12 21:47:18.574073, 2] ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2020/07/12 21:47:18.574184, 2] ../../source3/nmbd/nmbd_lmhosts.c:42(load_lmhosts_file) load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory [2020/07/12 21:47:18.584259, 0] ../../lib/util/become_daemon.c:135(daemon_ready) daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections [2020/07/12 21:47:18.585679, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:18.585829, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 21:47:18.587863, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1d>. This response was from IP 10.0.0.154, reporting an IP address of 10.0.0.154. [2020/07/12 21:47:18.588083, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 21:47:18.588205, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. [2020/07/12 21:47:25.606229, 2] ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) send_election_dgram: Sending election packet for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:27.610464, 2] ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) send_election_dgram: Sending election packet for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:29.611991, 2] ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) send_election_dgram: Sending election packet for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:31.613930, 2] ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) send_election_dgram: Sending election packet for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:33.615937, 2] ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) send_election_dgram: Sending election packet for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:33.616324, 2] ../../source3/nmbd/nmbd_elections.c:200(run_elections) run_elections: >>> Won election for workgroup NETWORK-1 on subnet 10.0.0.2 <<< [2020/07/12 21:47:33.616393, 2] ../../source3/nmbd/nmbd_become_lmb.c:537(become_local_master_browser) become_local_master_browser: Starting to become a master browser for workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:47:41.482842, 0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** Samba name server MIMIR is now a local master browser for workgroup NETWORK-1 on subnet 10.0.0.2 ***** [2020/07/12 21:52:36.083840, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:52:36.084022, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 21:52:36.086618, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 21:52:36.087929, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. [2020/07/12 21:57:33.775070, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 21:57:33.775542, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 21:57:33.781366, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 21:57:33.781759, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. [2020/07/12 22:02:48.653973, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 22:02:48.654167, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 22:02:48.663763, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 22:02:48.664086, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. [2020/07/12 22:07:49.623810, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 22:07:49.624015, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 22:07:49.629685, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 22:07:49.631020, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. [2020/07/12 22:12:52.243758, 0] ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup NETWORK-1 on subnet 10.0.0.2 [2020/07/12 22:12:52.243962, 0] ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain master browser on workgroup NETWORK-1 [2020/07/12 22:12:52.245073, 0] ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 10.0.0.3 for workgroup NETWORK-1 registered on subnet 10.0.0.2. [2020/07/12 22:12:52.245285, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) query_name_response: Multiple (2) responses received for a query on subnet 10.0.0.2 for name NETWORK-1<1b>. This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3.
SMBv1 (the anonymous thing behind network neighborhood) because of the massive security problems it caused was decprecated. Microsoft came up with network neighborhood and they've shut it down due to their bad implementation. Samba, likewise, doesn't support SMBv1 by default. On 7/12/20 10:29 PM, Michael Jones via samba wrote:> I'm trying to diagnose why my windows 10 clients can't do network browsing. > The network neighborhood doesn't show any of my machines running samba. > > I've verified that all of my samba hosts are running nmbd! > > I've reached the end of my ability to debug this, so I could really use > some help from the list to figure out why this isn't working. > > I've isolated the situation down to the simplest setup I could manage. > Normally I have about 5 different machines running file shares, but I've > turned all but one of them off for this investigation. > > The test case is: 3 Gentoo systems, 1 windows 10 system. > > Gentoo: > dc1 is my domain controller (uses the "samba" binary, instead of smbd / > nmbd / winbindd, directly) > mimir is joined to the domain of dc1. Has no file shares. Runs only "nmbd" > and "winbindd". Should act as the master browser for netbios. > userfiles is joined to the domain of dc1, has file shares. Runs smbd, nmdb, > winbindd > > The windows 10 system is just a windows 10 system, joined to the domain of > dc1. > > I've used "ntbstat -a mimir" from the windows 10 machine to confirm it > thinks that mimir is the network browser. > > I can log into the network shares without issue, but the Network browser > from Windows Explorer does not show any of my samba hosts. However, it does > show other things, like Google Chromecasts, Printers, and other network > infrastructure. > > Any advice? > > ############################################### > Samba version > ############################################### > 4.11.8 > > ############################################### > DC1's config follows > ############################################### > [global] > server role = active directory domain controller > dns forwarder = 10.0.0.1 > idmap_ldb:use rfc2307 = yes > > workgroup = NETWORK-1 > realm = NETWORK-1.NET > hosts allow = 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 > 127.0.0.1 fe80::/10 fd00::/8 ::1 LOCAL > > server min protocol = SMB3 > client min protocol = SMB3 > > #Security settings > invalid users = nobody root > follow symlinks = false > > # The autorid map type auto-selects which UID to map to which microsoft UID. > # Not entirely certain if UIDs will map properly across linux machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > create mask = 0666 > directory mask = 0777 > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > > ############################################### > Mimir's config follows > ############################################### > [global] > security = ADS > workgroup = NETWORK-1 > realm = NETWORK-1.NET > > #Security settings > invalid users = nobody root > # Waiting on Root Explorer to fix bug > server min protocol = SMB2 > client min protocol = SMB2 > > # The autorid map type auto-selects which UID to map to which microsoft UID. > # Not entirely certain if UIDs will map properly across linux machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > obey pam restrictions = no > kerberos method = secrets and keytab > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > winbind refresh tickets = yes > winbind offline logon = yes > ## > # Set the amount of time to cache usernames / passwords to 30 days. > # That should be long enough to reliably re-establish an internet connection > # between logins. > ## > winbind cache time = 2592000 > > #Auto detection settings > domain master = yes > local master = yes > preferred master = yes > os level = 255 > > > ############################################### > Userfiles's config follows > ############################################### > [global] > security = ADS > workgroup = NETWORK-1 > realm = NETWORK-1.NET > > #Security settings > invalid users = nobody root > # Waiting on Root Explorer to fix bug > server min protocol = SMB2 > client min protocol = SMB2 > > # The autorid map type auto-selects which UID to map to which microsoft UID. > # Not entirely certain if UIDs will map properly across linux machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > obey pam restrictions = no > kerberos method = secrets and keytab > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > winbind refresh tickets = yes > winbind offline logon = yes > ## > # Set the amount of time to cache usernames / passwords to 30 days. > # That should be long enough to reliably re-establish an internet connection > # between logins. > ## > winbind cache time = 2592000 > > [Mikes_Files] > comment = Mike's Files > path = /media/raid/userfiles/jonesmz/ > valid users = jonesmz > force user = jonesmz > > ############################################### > Log from running the "smbtree" command > ############################################### > mimir /var/log/samba # smbtree --user jonesmz -d10 > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > lp_load_ex: refreshing parameters > Initialising global parameters > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > Processing section "[global]" > doing parameter security = ADS > doing parameter workgroup = NETWORK-1 > doing parameter realm = NETWORK-1.NET > doing parameter log file = /var/log/samba/log.%L.%m > doing parameter log level = 2 > doing parameter max log size = 100 > doing parameter invalid users = nobody root > doing parameter server min protocol = SMB2 > doing parameter client min protocol = SMB2 > doing parameter client NTLMv2 auth = Yes > doing parameter client lanman auth = No > doing parameter client plaintext auth = No > doing parameter follow symlinks = false > doing parameter idmap config * : backend = autorid > doing parameter idmap config * : range = 1000000-19999999 > doing parameter username map = /etc/samba/user.map > doing parameter allow trusted domains = no > doing parameter template shell = /bin/bash > doing parameter template homedir = /home/%U > doing parameter obey pam restrictions = no > doing parameter kerberos method = secrets and keytab > doing parameter winbind use default domain = yes > doing parameter winbind enum users = yes > doing parameter winbind enum groups = yes > doing parameter winbind nested groups = yes > doing parameter winbind refresh tickets = yes > doing parameter winbind offline logon = yes > doing parameter winbind cache time = 2592000 > doing parameter rpc_daemon:fssd = fork > doing parameter registry shares = yes > doing parameter include = registry > doing parameter registry shares = yes > registry_init_smbconf called > regdb_init: registry db openend. refcount reset (1) > reghook_cache_init: new tree with default ops 0x7f3d43d83140 for key [] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > reghook_cache_add: Adding ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_add: Enter > pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to tree > pathtree_add: Exit > regdb_close: decrementing refcount (1->0) > regdb_open: registry db opened. refcount reset (1) > regkey_open_onelevel: name = [HKLM] > regdb_open: incrementing refcount (1->2) > reghook_cache_find: Searching for keyname [\HKLM] > pathtree_find: Enter [\HKLM] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM] > regkey_open_onelevel: name = [SOFTWARE] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > pathtree_find: Enter [\HKLM\SOFTWARE] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE] > regkey_open_onelevel: name = [Samba] > regdb_open: incrementing refcount (3->4) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE\Samba] > regkey_open_onelevel: name = [smbconf] > regdb_open: incrementing refcount (4->5) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > regdb_close: decrementing refcount (5->4) > regdb_close: decrementing refcount (4->3) > regdb_close: decrementing refcount (3->2) > process_registry_service: service name global > regkey_open_onelevel: name = [global] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf\global] > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > regdb_close: decrementing refcount (3->2) > doing parameter load printers = no > doing parameter printing = bsd > doing parameter printcap name = /dev/null > doing parameter disable spoolss = yes > doing parameter include = /etc/samba/smb_perf.conf > Processing section "[global]" > doing parameter strict locking = no > doing parameter strict allocate = yes > doing parameter min receivefile size = 16384 > doing parameter use sendfile = true > doing parameter include = /etc/samba/smb-%L.conf > Processing section "[global]" > doing parameter domain master = yes > doing parameter local master = yes > doing parameter preferred master = yes > doing parameter os level = 255 > pm_process() returned Yes > lp_servicenumber: couldn't find homes > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > Opening cache file at /var/lock/samba/gencache.tdb > name NETWORK-1#1D found. > remove_duplicate_addrs2: looking for duplicate address/port pairs > Enter NETWORK-1\jonesmz's password: > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > name_status_find: looking up *#00 at 10.0.0.2 > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > > > > ############################################### > Log from running the "smbtree" command, with the broadcast flag > ############################################### > mimir /var/log/samba # smbtree --user jonesmz -b -d10 > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > lp_load_ex: refreshing parameters > Initialising global parameters > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > Processing section "[global]" > doing parameter security = ADS > doing parameter workgroup = NETWORK-1 > doing parameter realm = NETWORK-1.NET > doing parameter log file = /var/log/samba/log.%L.%m > doing parameter log level = 2 > doing parameter max log size = 100 > doing parameter invalid users = nobody root > doing parameter server min protocol = SMB2 > doing parameter client min protocol = SMB2 > doing parameter client NTLMv2 auth = Yes > doing parameter client lanman auth = No > doing parameter client plaintext auth = No > doing parameter follow symlinks = false > doing parameter idmap config * : backend = autorid > doing parameter idmap config * : range = 1000000-19999999 > doing parameter username map = /etc/samba/user.map > doing parameter allow trusted domains = no > doing parameter template shell = /bin/bash > doing parameter template homedir = /home/%U > doing parameter obey pam restrictions = no > doing parameter kerberos method = secrets and keytab > doing parameter winbind use default domain = yes > doing parameter winbind enum users = yes > doing parameter winbind enum groups = yes > doing parameter winbind nested groups = yes > doing parameter winbind refresh tickets = yes > doing parameter winbind offline logon = yes > doing parameter winbind cache time = 2592000 > doing parameter rpc_daemon:fssd = fork > doing parameter registry shares = yes > doing parameter include = registry > doing parameter registry shares = yes > registry_init_smbconf called > regdb_init: registry db openend. refcount reset (1) > reghook_cache_init: new tree with default ops 0x7f09a7972140 for key [] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > reghook_cache_add: Adding ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_add: Enter > pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to tree > pathtree_add: Exit > regdb_close: decrementing refcount (1->0) > regdb_open: registry db opened. refcount reset (1) > regkey_open_onelevel: name = [HKLM] > regdb_open: incrementing refcount (1->2) > reghook_cache_find: Searching for keyname [\HKLM] > pathtree_find: Enter [\HKLM] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM] > regkey_open_onelevel: name = [SOFTWARE] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > pathtree_find: Enter [\HKLM\SOFTWARE] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE] > regkey_open_onelevel: name = [Samba] > regdb_open: incrementing refcount (3->4) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE\Samba] > regkey_open_onelevel: name = [smbconf] > regdb_open: incrementing refcount (4->5) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > regdb_close: decrementing refcount (5->4) > regdb_close: decrementing refcount (4->3) > regdb_close: decrementing refcount (3->2) > process_registry_service: service name global > regkey_open_onelevel: name = [global] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf\global] > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > regdb_close: decrementing refcount (3->2) > doing parameter load printers = no > doing parameter printing = bsd > doing parameter printcap name = /dev/null > doing parameter disable spoolss = yes > doing parameter include = /etc/samba/smb_perf.conf > Processing section "[global]" > doing parameter strict locking = no > doing parameter strict allocate = yes > doing parameter min receivefile size = 16384 > doing parameter use sendfile = true > doing parameter include = /etc/samba/smb-%L.conf > Processing section "[global]" > doing parameter domain master = yes > doing parameter local master = yes > doing parameter preferred master = yes > doing parameter os level = 255 > pm_process() returned Yes > lp_servicenumber: couldn't find homes > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 > name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1> > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( 10.0.0.2 ) > validator failed > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( ) > validator failed > name_status_find: looking up *#00 at 10.0.0.2 > Opening cache file at /var/lock/samba/gencache.tdb > gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Wed Dec 31 06:00:00 PM 1969 CST] (-1594610080 seconds in the > past) > namecache_status_fetch: no entry for NBT/*#00.1D.10.0.0.2 found. > startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such > file or directory > parse_nmb: packet id = 15345 > nmb packet from 10.0.0.2(35072) header: id=15345 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 > answers 0 char .MIMIR hex 074D494D495220202020202020202020 > answers 10 char ...MIMIR hex 0004004D494D49522020202020202020 > answers 20 char ...MIMIR hex 20200304004D494D4952202020202020 > answers 30 char ....__MSBRO hex 2020202020040001025F5F4D5342524F > answers 40 char WSE__....NETWORK hex 5753455F5F020184004E4554574F524B > answers 50 char -1 ...NETWO hex 2D312020202020200084004E4554574F > answers 60 char RK-1 ...NET hex 524B2D312020202020201D04004E4554 > answers 70 char WORK-1 .... hex 574F524B2D312020202020201E840000 > answers 80 char ................ hex 00000000000000000000000000000000 > answers 90 char ................ hex 00000000000000000000000000000000 > answers a0 char ............. hex 00000000000000000000000000 > MIMIR#00: flags = 0x04 > MIMIR#03: flags = 0x04 > MIMIR#20: flags = 0x04 > __MSBROWSE__#01: flags = 0x84 > NETWORK-1#00: flags = 0x84 > NETWORK-1#1d: flags = 0x04 > NETWORK-1#1e: flags = 0x84 > gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Sun Jul 12 10:25:40 PM 2020 CDT] (660 seconds ahead) > namecache_status_store: entry NBT/*#00.1D.10.0.0.2 -> NETWORK-1 > name_status_find: name found, name NETWORK-1 ip address is 10.0.0.2 > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > name NETWORK-1#1D found. > remove_duplicate_addrs2: looking for duplicate address/port pairs > found master browser NETWORK-1, 10.0.0.2 > Enter NETWORK-1\jonesmz's password: > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > name_status_find: looking up *#00 at 10.0.0.2 > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > Unable to find master browser by broadcast > > > > > > ############################################### > /var/log/samba/log.MIMIR.nmbd > ############################################### > mimir /var/log/samba # cat log.MIMIR.nmbd > [2020/07/12 21:47:18.573443, 2] > ../../source3/lib/interface.c:343(add_interface) > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > [2020/07/12 21:47:18.573706, 2] > ../../source3/lib/interface.c:343(add_interface) > added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 > [2020/07/12 21:47:18.573905, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:10.0.0.2 Broadcast address:10.255.255.255 Subnet > mask:255.0.0.0 > [2020/07/12 21:47:18.573967, 2] > ../../source3/nmbd/nmbd_subnetdb.c:299(create_subnets) > create_subnets: ignoring non IPv4 interface. > [2020/07/12 21:47:18.574019, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet > mask:0.0.0.0 > [2020/07/12 21:47:18.574073, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 > Subnet mask:0.0.0.0 > [2020/07/12 21:47:18.574184, 2] > ../../source3/nmbd/nmbd_lmhosts.c:42(load_lmhosts_file) > load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was > No such file or directory > [2020/07/12 21:47:18.584259, 0] > ../../lib/util/become_daemon.c:135(daemon_ready) > daemon_ready: daemon 'nmbd' finished starting up and ready to serve > connections > [2020/07/12 21:47:18.585679, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:18.585829, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:47:18.587863, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1d>. > This response was from IP 10.0.0.154, reporting an IP address of > 10.0.0.154. > [2020/07/12 21:47:18.588083, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:47:18.588205, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > [2020/07/12 21:47:25.606229, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:27.610464, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:29.611991, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:31.613930, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:33.615937, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:33.616324, 2] > ../../source3/nmbd/nmbd_elections.c:200(run_elections) > run_elections: >>> Won election for workgroup NETWORK-1 on subnet > 10.0.0.2 <<< > [2020/07/12 21:47:33.616393, 2] > ../../source3/nmbd/nmbd_become_lmb.c:537(become_local_master_browser) > become_local_master_browser: Starting to become a master browser for > workgroup NETWORK-1 on subnet 10.0.0.2 > [2020/07/12 21:47:41.482842, 0] > ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > ***** > > Samba name server MIMIR is now a local master browser for workgroup > NETWORK-1 on subnet 10.0.0.2 > > ***** > [2020/07/12 21:52:36.083840, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:52:36.084022, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:52:36.086618, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:52:36.087929, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > [2020/07/12 21:57:33.775070, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:57:33.775542, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:57:33.781366, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:57:33.781759, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > [2020/07/12 22:02:48.653973, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:02:48.654167, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:02:48.663763, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:02:48.664086, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > [2020/07/12 22:07:49.623810, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:07:49.624015, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:07:49.629685, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:07:49.631020, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > [2020/07/12 22:12:52.243758, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:12:52.243962, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:12:52.245073, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:12:52.245285, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. >
On 13/07/2020 04:29, Michael Jones via samba wrote:> I'm trying to diagnose why my windows 10 clients can't do network browsing. > The network neighborhood doesn't show any of my machines running samba. > > Any advice? >Sorry, but it looks like you really do not understand AD ;-) Netbios was a way for NT4-style domain computers to find each other,and you require SMBv1 for it to work. Because you have set SMBv3 as the minimum level on the DC, this is what will be used in all connections to the DC, you have set the 'minimums' to the maximum settings. AD uses dns instead of netbios and as your DC has a built in dns server, you should use dns instead of attempting to use netbios. I would remove these lines from the DC: server min protocol??????? = SMB3 # SMB2_02 client min protocol??????? = SMB3 # SMB2_02 #Security settings invalid users??????????????? = nobody root follow symlinks??????? = false # The autorid map type auto-selects which UID to map to which microsoft UID. # Not entirely certain if UIDs will map properly across linux machines. Probably worth looking into. # Don't shrink the UID range, apparently some users end up with UIDs towards the max size. Unclear why. idmap config * : backend = autorid idmap config * : range = 1000000-19999999 username map??????????????? = /etc/samba/user.map create mask??????????????? = 0666 directory mask??????????????? = 0777 allow trusted domains??????? = no winbind use default domain = yes winbind enum users??????? = yes winbind enum groups??????? = yes winbind nested groups??????? = yes They either have no place on a DC, or actually stop your DC from working correctly. I would remove these lines from mimir and Userfiles: #Security settings invalid users??????????????? = nobody root # Waiting on Root Explorer to fix bug server min protocol??????? = SMB2 client min protocol??????? = SMB2 winbind enum users??????? = yes winbind enum groups??????? = yes winbind nested groups??????? = yes #Auto detection settings domain master??????????????? = yes local master??????????????? = yes preferred master??????? = yes os level??????????????? = 255 Windows now uses Network Discovery instead of Network Browsing, if you run this on all your Samba machines: https://github.com/christgau/wsdd Your Samba machines will appear in Explorer on Windows, your Linux machines should use Avahi to get something similar. Rowland
A reasonable alternative is to run Christgau's excellent Web Service Discovery host daemon (wsdd) on the samba server and make sure the Function Discovery Provider Host and Function Discovery Resource Publication services are running on the Windows 10 machines. Get wsdd from here: https://github.com/christgau/wsdd.git You can then stop and disable the nmbd on the samba machines as it's not doing anything useful any more. HTH, Roy> -----Original Message----- > From: samba <samba-bounces at lists.samba.org> On Behalf Of Christopher Cox via samba > Sent: 13 July 2020 06:19 > To: samba at lists.samba.org > Subject: Re: [Samba] Problem with network browsing > > SMBv1 (the anonymous thing behind network neighborhood) because of the massive security problems it caused was decprecated. > Microsoft came up with network neighborhood and they've shut it down due to their bad implementation. > > Samba, likewise, doesn't support SMBv1 by default. > > On 7/12/20 10:29 PM, Michael Jones via samba wrote: > > I'm trying to diagnose why my windows 10 clients can't do network browsing. > > The network neighborhood doesn't show any of my machines running samba. > > > > I've verified that all of my samba hosts are running nmbd! > > > > I've reached the end of my ability to debug this, so I could really > > use some help from the list to figure out why this isn't working. > > > > I've isolated the situation down to the simplest setup I could manage. > > Normally I have about 5 different machines running file shares, but > > I've turned all but one of them off for this investigation. > > > > The test case is: 3 Gentoo systems, 1 windows 10 system. > > > > Gentoo: > > dc1 is my domain controller (uses the "samba" binary, instead of smbd > > / nmbd / winbindd, directly) mimir is joined to the domain of dc1. Has > > no file shares. Runs only "nmbd" > > and "winbindd". Should act as the master browser for netbios. > > userfiles is joined to the domain of dc1, has file shares. Runs smbd, > > nmdb, winbindd > > > > The windows 10 system is just a windows 10 system, joined to the > > domain of dc1. > > > > I've used "ntbstat -a mimir" from the windows 10 machine to confirm it > > thinks that mimir is the network browser. > > > > I can log into the network shares without issue, but the Network > > browser from Windows Explorer does not show any of my samba hosts. > > However, it does show other things, like Google Chromecasts, Printers, > > and other network infrastructure. > > > > Any advice? > > > > ############################################### > > Samba version > > ############################################### > > 4.11.8 > > > > ############################################### > > DC1's config follows > > ############################################### > > [global] > > server role = active directory domain controller > > dns forwarder = 10.0.0.1 > > idmap_ldb:use rfc2307 = yes > > > > workgroup = NETWORK-1 > > realm = NETWORK-1.NET > > hosts allow = 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 > > 127.0.0.1 fe80::/10 fd00::/8 ::1 LOCAL > > > > server min protocol = SMB3 > > client min protocol = SMB3 > > > > #Security settings > > invalid users = nobody root > > follow symlinks = false > > > > # The autorid map type auto-selects which UID to map to which microsoft UID. > > # Not entirely certain if UIDs will map properly across linux machines. > > Probably worth looking into. > > # Don't shrink the UID range, apparently some users end up with UIDs > > towards the max size. Unclear why. > > idmap config * : backend = autorid > > idmap config * : range = 1000000-19999999 > > > > username map = /etc/samba/user.map > > create mask = 0666 > > directory mask = 0777 > > > > allow trusted domains = no > > template shell = /bin/bash > > template homedir = /home/%U > > > > winbind use default domain = yes > > winbind enum users = yes > > winbind enum groups = yes > > winbind nested groups = yes > > > > ############################################### > > Mimir's config follows > > ############################################### > > [global] > > security = ADS > > workgroup = NETWORK-1 > > realm = NETWORK-1.NET > > > > #Security settings > > invalid users = nobody root > > # Waiting on Root Explorer to fix bug > > server min protocol = SMB2 > > client min protocol = SMB2 > > > > # The autorid map type auto-selects which UID to map to which microsoft UID. > > # Not entirely certain if UIDs will map properly across linux machines. > > Probably worth looking into. > > # Don't shrink the UID range, apparently some users end up with UIDs > > towards the max size. Unclear why. > > idmap config * : backend = autorid > > idmap config * : range = 1000000-19999999 > > > > username map = /etc/samba/user.map > > > > allow trusted domains = no > > template shell = /bin/bash > > template homedir = /home/%U > > > > obey pam restrictions = no > > kerberos method = secrets and keytab > > > > winbind use default domain = yes > > winbind enum users = yes > > winbind enum groups = yes > > winbind nested groups = yes > > winbind refresh tickets = yes > > winbind offline logon = yes > > ## > > # Set the amount of time to cache usernames / passwords to 30 days. > > # That should be long enough to reliably re-establish an internet > > connection # between logins. > > ## > > winbind cache time = 2592000 > > > > #Auto detection settings > > domain master = yes > > local master = yes > > preferred master = yes > > os level = 255 > > > > > > ############################################### > > Userfiles's config follows > > ############################################### > > [global] > > security = ADS > > workgroup = NETWORK-1 > > realm = NETWORK-1.NET > > > > #Security settings > > invalid users = nobody root > > # Waiting on Root Explorer to fix bug > > server min protocol = SMB2 > > client min protocol = SMB2 > > > > # The autorid map type auto-selects which UID to map to which microsoft UID. > > # Not entirely certain if UIDs will map properly across linux machines. > > Probably worth looking into. > > # Don't shrink the UID range, apparently some users end up with UIDs > > towards the max size. Unclear why. > > idmap config * : backend = autorid > > idmap config * : range = 1000000-19999999 > > > > username map = /etc/samba/user.map > > > > allow trusted domains = no > > template shell = /bin/bash > > template homedir = /home/%U > > > > obey pam restrictions = no > > kerberos method = secrets and keytab > > > > winbind use default domain = yes > > winbind enum users = yes > > winbind enum groups = yes > > winbind nested groups = yes > > winbind refresh tickets = yes > > winbind offline logon = yes > > ## > > # Set the amount of time to cache usernames / passwords to 30 days. > > # That should be long enough to reliably re-establish an internet > > connection # between logins. > > ## > > winbind cache time = 2592000 > > > > [Mikes_Files] > > comment = Mike's Files > > path = /media/raid/userfiles/jonesmz/ > > valid users = jonesmz > > force user = jonesmz > > > > ############################################### > > Log from running the "smbtree" command > > ############################################### > > mimir /var/log/samba # smbtree --user jonesmz -d10 > > INFO: Current debug levels: > > all: 10 > > tdb: 10 > > printdrivers: 10 > > lanman: 10 > > smb: 10 > > rpc_parse: 10 > > rpc_srv: 10 > > rpc_cli: 10 > > passdb: 10 > > sam: 10 > > auth: 10 > > winbind: 10 > > vfs: 10 > > idmap: 10 > > quota: 10 > > acls: 10 > > locking: 10 > > msdfs: 10 > > dmapi: 10 > > registry: 10 > > scavenger: 10 > > dns: 10 > > ldb: 10 > > tevent: 10 > > auth_audit: 10 > > auth_json_audit: 10 > > kerberos: 10 > > drs_repl: 10 > > smb2: 10 > > smb2_credits: 10 > > dsdb_audit: 10 > > dsdb_json_audit: 10 > > dsdb_password_audit: 10 > > dsdb_password_json_audit: 10 > > dsdb_transaction_audit: 10 > > dsdb_transaction_json_audit: 10 > > dsdb_group_audit: 10 > > dsdb_group_json_audit: 10 > > lp_load_ex: refreshing parameters > > Initialising global parameters > > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit > > (16384) > > INFO: Current debug levels: > > all: 10 > > tdb: 10 > > printdrivers: 10 > > lanman: 10 > > smb: 10 > > rpc_parse: 10 > > rpc_srv: 10 > > rpc_cli: 10 > > passdb: 10 > > sam: 10 > > auth: 10 > > winbind: 10 > > vfs: 10 > > idmap: 10 > > quota: 10 > > acls: 10 > > locking: 10 > > msdfs: 10 > > dmapi: 10 > > registry: 10 > > scavenger: 10 > > dns: 10 > > ldb: 10 > > tevent: 10 > > auth_audit: 10 > > auth_json_audit: 10 > > kerberos: 10 > > drs_repl: 10 > > smb2: 10 > > smb2_credits: 10 > > dsdb_audit: 10 > > dsdb_json_audit: 10 > > dsdb_password_audit: 10 > > dsdb_password_json_audit: 10 > > dsdb_transaction_audit: 10 > > dsdb_transaction_json_audit: 10 > > dsdb_group_audit: 10 > > dsdb_group_json_audit: 10 > > Processing section "[global]" > > doing parameter security = ADS > > doing parameter workgroup = NETWORK-1 > > doing parameter realm = NETWORK-1.NET > > doing parameter log file = /var/log/samba/log.%L.%m doing parameter > > log level = 2 doing parameter max log size = 100 doing parameter > > invalid users = nobody root doing parameter server min protocol = SMB2 > > doing parameter client min protocol = SMB2 doing parameter client > > NTLMv2 auth = Yes doing parameter client lanman auth = No doing > > parameter client plaintext auth = No doing parameter follow symlinks > > false doing parameter idmap config * : backend = autorid doing > > parameter idmap config * : range = 1000000-19999999 doing parameter > > username map = /etc/samba/user.map doing parameter allow trusted > > domains = no doing parameter template shell = /bin/bash doing > > parameter template homedir = /home/%U doing parameter obey pam > > restrictions = no doing parameter kerberos method = secrets and keytab > > doing parameter winbind use default domain = yes doing parameter > > winbind enum users = yes doing parameter winbind enum groups = yes > > doing parameter winbind nested groups = yes doing parameter winbind > > refresh tickets = yes doing parameter winbind offline logon = yes > > doing parameter winbind cache time = 2592000 doing parameter > > rpc_daemon:fssd = fork doing parameter registry shares = yes doing > > parameter include = registry doing parameter registry shares = yes > > registry_init_smbconf called > > regdb_init: registry db openend. refcount reset (1) > > reghook_cache_init: new tree with default ops 0x7f3d43d83140 for key > > [] > > regdb_fetch_values: Looking for values of key > > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > > regdb_fetch_values: Looking for values of key > > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > > regdb_fetch_values: Looking for values of key > > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > > regdb_unpack_values: value[0]: name[DisplayName] len[20] > > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > > regdb_fetch_values: Looking for values of key > > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > > regdb_unpack_values: value[0]: name[DisplayName] len[20] > > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > > reghook_cache_add: Adding ops 0x7f3d43d831a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_add: Enter > > pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to > > tree > > pathtree_add: Exit > > regdb_close: decrementing refcount (1->0) > > regdb_open: registry db opened. refcount reset (1) > > regkey_open_onelevel: name = [HKLM] > > regdb_open: incrementing refcount (1->2) > > reghook_cache_find: Searching for keyname [\HKLM] > > pathtree_find: Enter [\HKLM] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM] > > regkey_open_onelevel: name = [SOFTWARE] > > regdb_open: incrementing refcount (2->3) > > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > > pathtree_find: Enter [\HKLM\SOFTWARE] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE] > > regkey_open_onelevel: name = [Samba] > > regdb_open: incrementing refcount (3->4) > > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f3d43d83140 for key > > [\HKLM\SOFTWARE\Samba] > > regkey_open_onelevel: name = [smbconf] > > regdb_open: incrementing refcount (4->5) > > reghook_cache_find: Searching for keyname > > [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f3d43d831a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf] > > regdb_close: decrementing refcount (5->4) > > regdb_close: decrementing refcount (4->3) > > regdb_close: decrementing refcount (3->2) > > process_registry_service: service name global > > regkey_open_onelevel: name = [global] > > regdb_open: incrementing refcount (2->3) > > reghook_cache_find: Searching for keyname > > [\HKLM\SOFTWARE\Samba\smbconf\global] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f3d43d831a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf\global] > > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > > regdb_close: decrementing refcount (3->2) doing parameter load > > printers = no doing parameter printing = bsd doing parameter printcap > > name = /dev/null doing parameter disable spoolss = yes doing parameter > > include = /etc/samba/smb_perf.conf Processing section "[global]" > > doing parameter strict locking = no > > doing parameter strict allocate = yes > > doing parameter min receivefile size = 16384 doing parameter use > > sendfile = true doing parameter include = /etc/samba/smb-%L.conf > > Processing section "[global]" > > doing parameter domain master = yes > > doing parameter local master = yes > > doing parameter preferred master = yes doing parameter os level = 255 > > pm_process() returned Yes > > lp_servicenumber: couldn't find homes > > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > > bcast= netmask=ffff:ffff:ffff:ffff:: > > added interface general ip=10.0.0.2 bcast=10.255.255.255 > > netmask=255.0.0.0 > > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > > Opening cache file at /var/lock/samba/gencache.tdb name NETWORK-1#1D > > found. > > remove_duplicate_addrs2: looking for duplicate address/port pairs > > Enter NETWORK-1\jonesmz's password: > > Connecting to 10.0.0.2 at port 445 > > Connecting to 10.0.0.2 at port 139 > > name_status_find: looking up *#00 at 10.0.0.2 > > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR Connecting > > to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 > > > > > > > > ############################################### > > Log from running the "smbtree" command, with the broadcast flag > > ############################################### > > mimir /var/log/samba # smbtree --user jonesmz -b -d10 > > INFO: Current debug levels: > > all: 10 > > tdb: 10 > > printdrivers: 10 > > lanman: 10 > > smb: 10 > > rpc_parse: 10 > > rpc_srv: 10 > > rpc_cli: 10 > > passdb: 10 > > sam: 10 > > auth: 10 > > winbind: 10 > > vfs: 10 > > idmap: 10 > > quota: 10 > > acls: 10 > > locking: 10 > > msdfs: 10 > > dmapi: 10 > > registry: 10 > > scavenger: 10 > > dns: 10 > > ldb: 10 > > tevent: 10 > > auth_audit: 10 > > auth_json_audit: 10 > > kerberos: 10 > > drs_repl: 10 > > smb2: 10 > > smb2_credits: 10 > > dsdb_audit: 10 > > dsdb_json_audit: 10 > > dsdb_password_audit: 10 > > dsdb_password_json_audit: 10 > > dsdb_transaction_audit: 10 > > dsdb_transaction_json_audit: 10 > > dsdb_group_audit: 10 > > dsdb_group_json_audit: 10 > > lp_load_ex: refreshing parameters > > Initialising global parameters > > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit > > (16384) > > INFO: Current debug levels: > > all: 10 > > tdb: 10 > > printdrivers: 10 > > lanman: 10 > > smb: 10 > > rpc_parse: 10 > > rpc_srv: 10 > > rpc_cli: 10 > > passdb: 10 > > sam: 10 > > auth: 10 > > winbind: 10 > > vfs: 10 > > idmap: 10 > > quota: 10 > > acls: 10 > > locking: 10 > > msdfs: 10 > > dmapi: 10 > > registry: 10 > > scavenger: 10 > > dns: 10 > > ldb: 10 > > tevent: 10 > > auth_audit: 10 > > auth_json_audit: 10 > > kerberos: 10 > > drs_repl: 10 > > smb2: 10 > > smb2_credits: 10 > > dsdb_audit: 10 > > dsdb_json_audit: 10 > > dsdb_password_audit: 10 > > dsdb_password_json_audit: 10 > > dsdb_transaction_audit: 10 > > dsdb_transaction_json_audit: 10 > > dsdb_group_audit: 10 > > dsdb_group_json_audit: 10 > > Processing section "[global]" > > doing parameter security = ADS > > doing parameter workgroup = NETWORK-1 > > doing parameter realm = NETWORK-1.NET > > doing parameter log file = /var/log/samba/log.%L.%m doing parameter > > log level = 2 doing parameter max log size = 100 doing parameter > > invalid users = nobody root doing parameter server min protocol = SMB2 > > doing parameter client min protocol = SMB2 doing parameter client > > NTLMv2 auth = Yes doing parameter client lanman auth = No doing > > parameter client plaintext auth = No doing parameter follow symlinks > > false doing parameter idmap config * : backend = autorid doing > > parameter idmap config * : range = 1000000-19999999 doing parameter > > username map = /etc/samba/user.map doing parameter allow trusted > > domains = no doing parameter template shell = /bin/bash doing > > parameter template homedir = /home/%U doing parameter obey pam > > restrictions = no doing parameter kerberos method = secrets and keytab > > doing parameter winbind use default domain = yes doing parameter > > winbind enum users = yes doing parameter winbind enum groups = yes > > doing parameter winbind nested groups = yes doing parameter winbind > > refresh tickets = yes doing parameter winbind offline logon = yes > > doing parameter winbind cache time = 2592000 doing parameter > > rpc_daemon:fssd = fork doing parameter registry shares = yes doing > > parameter include = registry doing parameter registry shares = yes > > registry_init_smbconf called > > regdb_init: registry db openend. refcount reset (1) > > reghook_cache_init: new tree with default ops 0x7f09a7972140 for key > > [] > > regdb_fetch_values: Looking for values of key > > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > > regdb_fetch_values: Looking for values of key > > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > > regdb_fetch_values: Looking for values of key > > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > > regdb_unpack_values: value[0]: name[DisplayName] len[20] > > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > > regdb_fetch_values: Looking for values of key > > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > > regdb_unpack_values: value[0]: name[DisplayName] len[20] > > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > > reghook_cache_add: Adding ops 0x7f09a79721a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_add: Enter > > pathtree_add: Successfully added node [HKLM\SOFTWARE\Samba\smbconf] to > > tree > > pathtree_add: Exit > > regdb_close: decrementing refcount (1->0) > > regdb_open: registry db opened. refcount reset (1) > > regkey_open_onelevel: name = [HKLM] > > regdb_open: incrementing refcount (1->2) > > reghook_cache_find: Searching for keyname [\HKLM] > > pathtree_find: Enter [\HKLM] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM] > > regkey_open_onelevel: name = [SOFTWARE] > > regdb_open: incrementing refcount (2->3) > > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > > pathtree_find: Enter [\HKLM\SOFTWARE] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE] > > regkey_open_onelevel: name = [Samba] > > regdb_open: incrementing refcount (3->4) > > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f09a7972140 for key > > [\HKLM\SOFTWARE\Samba] > > regkey_open_onelevel: name = [smbconf] > > regdb_open: incrementing refcount (4->5) > > reghook_cache_find: Searching for keyname > > [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f09a79721a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf] > > regdb_close: decrementing refcount (5->4) > > regdb_close: decrementing refcount (4->3) > > regdb_close: decrementing refcount (3->2) > > process_registry_service: service name global > > regkey_open_onelevel: name = [global] > > regdb_open: incrementing refcount (2->3) > > reghook_cache_find: Searching for keyname > > [\HKLM\SOFTWARE\Samba\smbconf\global] > > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > > pathtree_find: Exit > > reghook_cache_find: found ops 0x7f09a79721a0 for key > > [\HKLM\SOFTWARE\Samba\smbconf\global] > > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > > regdb_close: decrementing refcount (3->2) doing parameter load > > printers = no doing parameter printing = bsd doing parameter printcap > > name = /dev/null doing parameter disable spoolss = yes doing parameter > > include = /etc/samba/smb_perf.conf Processing section "[global]" > > doing parameter strict locking = no > > doing parameter strict allocate = yes > > doing parameter min receivefile size = 16384 doing parameter use > > sendfile = true doing parameter include = /etc/samba/smb-%L.conf > > Processing section "[global]" > > doing parameter domain master = yes > > doing parameter local master = yes > > doing parameter preferred master = yes doing parameter os level = 255 > > pm_process() returned Yes > > lp_servicenumber: couldn't find homes > > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > > bcast= netmask=ffff:ffff:ffff:ffff:: > > added interface general ip=10.0.0.2 bcast=10.255.255.255 > > netmask=255.0.0.0 > > name_resolve_bcast: Attempting broadcast lookup for name > > __MSBROWSE__<0x1> > > parse_nmb: packet id = 22832 > > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > > response=Yes > > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > > answers 0 char ...... hex 80000A000002 > > Got a positive name query response from 10.0.0.2 ( 10.0.0.2 ) > > validator failed > > parse_nmb: packet id = 22832 > > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > > response=Yes > > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > > answers 0 char ...... hex 80000A000002 > > Got a positive name query response from 10.0.0.2 ( ) validator failed > > name_status_find: looking up *#00 at 10.0.0.2 Opening cache file at > > /var/lock/samba/gencache.tdb > > gencache_set_data_blob: Adding cache entry with > > key=[NBT/*#00.1D.10.0.0.2] and timeout=[Wed Dec 31 06:00:00 PM 1969 > > CST] (-1594610080 seconds in the > > past) > > namecache_status_fetch: no entry for NBT/*#00.1D.10.0.0.2 found. > > startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No > > such file or directory > > parse_nmb: packet id = 15345 > > nmb packet from 10.0.0.2(35072) header: id=15345 opcode=Query(0) > > response=Yes > > header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes > > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > > answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 > > answers 0 char .MIMIR hex 074D494D495220202020202020202020 > > answers 10 char ...MIMIR hex 0004004D494D49522020202020202020 > > answers 20 char ...MIMIR hex 20200304004D494D4952202020202020 > > answers 30 char ....__MSBRO hex 2020202020040001025F5F4D5342524F > > answers 40 char WSE__....NETWORK hex 5753455F5F020184004E4554574F524B > > answers 50 char -1 ...NETWO hex 2D312020202020200084004E4554574F > > answers 60 char RK-1 ...NET hex 524B2D312020202020201D04004E4554 > > answers 70 char WORK-1 .... hex 574F524B2D312020202020201E840000 > > answers 80 char ................ hex 00000000000000000000000000000000 > > answers 90 char ................ hex 00000000000000000000000000000000 > > answers a0 char ............. hex 00000000000000000000000000 > > MIMIR#00: flags = 0x04 > > MIMIR#03: flags = 0x04 > > MIMIR#20: flags = 0x04 > > __MSBROWSE__#01: flags = 0x84 > > NETWORK-1#00: flags = 0x84 > > NETWORK-1#1d: flags = 0x04 > > NETWORK-1#1e: flags = 0x84 > > gencache_set_data_blob: Adding cache entry with > > key=[NBT/*#00.1D.10.0.0.2] and timeout=[Sun Jul 12 10:25:40 PM 2020 > > CDT] (660 seconds ahead) > > namecache_status_store: entry NBT/*#00.1D.10.0.0.2 -> NETWORK-1 > > name_status_find: name found, name NETWORK-1 ip address is 10.0.0.2 > > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) name > > NETWORK-1#1D found. > > remove_duplicate_addrs2: looking for duplicate address/port pairs > > found master browser NETWORK-1, 10.0.0.2 Enter NETWORK-1\jonesmz's > > password: > > Connecting to 10.0.0.2 at port 445 > > Connecting to 10.0.0.2 at port 139 > > name_status_find: looking up *#00 at 10.0.0.2 > > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR Connecting > > to 10.0.0.2 at port 445 Connecting to 10.0.0.2 at port 139 Unable to > > find master browser by broadcast > > > > > > > > > > > > ############################################### > > /var/log/samba/log.MIMIR.nmbd > > ############################################### > > mimir /var/log/samba # cat log.MIMIR.nmbd > > [2020/07/12 21:47:18.573443, 2] > > ../../source3/lib/interface.c:343(add_interface) > > added interface ceph-public > > ip=fda8:941:2491:1699:60fa:e622:8345:2162 > > bcast= netmask=ffff:ffff:ffff:ffff:: > > [2020/07/12 21:47:18.573706, 2] > > ../../source3/lib/interface.c:343(add_interface) > > added interface general ip=10.0.0.2 bcast=10.255.255.255 > > netmask=255.0.0.0 > > [2020/07/12 21:47:18.573905, 2] > > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > > making subnet name:10.0.0.2 Broadcast address:10.255.255.255 Subnet > > mask:255.0.0.0 > > [2020/07/12 21:47:18.573967, 2] > > ../../source3/nmbd/nmbd_subnetdb.c:299(create_subnets) > > create_subnets: ignoring non IPv4 interface. > > [2020/07/12 21:47:18.574019, 2] > > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > > making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet > > mask:0.0.0.0 > > [2020/07/12 21:47:18.574073, 2] > > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > > making subnet name:REMOTE_BROADCAST_SUBNET Broadcast > > address:0.0.0.0 Subnet mask:0.0.0.0 > > [2020/07/12 21:47:18.574184, 2] > > ../../source3/nmbd/nmbd_lmhosts.c:42(load_lmhosts_file) > > load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. > > Error was No such file or directory > > [2020/07/12 21:47:18.584259, 0] > > ../../lib/util/become_daemon.c:135(daemon_ready) > > daemon_ready: daemon 'nmbd' finished starting up and ready to serve > > connections > > [2020/07/12 21:47:18.585679, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 21:47:18.585829, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 21:47:18.587863, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1d>. > > This response was from IP 10.0.0.154, reporting an IP address of > > 10.0.0.154. > > [2020/07/12 21:47:18.588083, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 21:47:18.588205, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > [2020/07/12 21:47:25.606229, 2] > > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > > send_election_dgram: Sending election packet for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:27.610464, 2] > > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > > send_election_dgram: Sending election packet for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:29.611991, 2] > > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > > send_election_dgram: Sending election packet for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:31.613930, 2] > > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > > send_election_dgram: Sending election packet for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:33.615937, 2] > > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > > send_election_dgram: Sending election packet for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:33.616324, 2] > > ../../source3/nmbd/nmbd_elections.c:200(run_elections) > > run_elections: >>> Won election for workgroup NETWORK-1 on subnet > > 10.0.0.2 <<< > > [2020/07/12 21:47:33.616393, 2] > > ../../source3/nmbd/nmbd_become_lmb.c:537(become_local_master_browser) > > become_local_master_browser: Starting to become a master browser > > for workgroup NETWORK-1 on subnet 10.0.0.2 > > [2020/07/12 21:47:41.482842, 0] > > ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > > ***** > > > > Samba name server MIMIR is now a local master browser for workgroup > > NETWORK-1 on subnet 10.0.0.2 > > > > ***** > > [2020/07/12 21:52:36.083840, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 21:52:36.084022, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 21:52:36.086618, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 21:52:36.087929, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > [2020/07/12 21:57:33.775070, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 21:57:33.775542, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 21:57:33.781366, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 21:57:33.781759, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > [2020/07/12 22:02:48.653973, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 22:02:48.654167, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 22:02:48.663763, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 22:02:48.664086, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > [2020/07/12 22:07:49.623810, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 22:07:49.624015, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 22:07:49.629685, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 22:07:49.631020, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > [2020/07/12 22:12:52.243758, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: > > Attempting to become domain master browser on workgroup NETWORK-1 > > on subnet 10.0.0.2 > > [2020/07/12 22:12:52.243962, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_browser_bcast) > > become_domain_master_browser_bcast: querying subnet 10.0.0.2 for > > domain master browser on workgroup NETWORK-1 > > [2020/07/12 22:12:52.245073, 0] > > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_query_success) > > become_domain_master_query_success: > > There is already a domain master browser at IP 10.0.0.3 for > > workgroup > > NETWORK-1 registered on subnet 10.0.0.2. > > [2020/07/12 22:12:52.245285, 0] > > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > > query_name_response: Multiple (2) responses received for a query on > > subnet 10.0.0.2 for name NETWORK-1<1b>. > > This response was from IP 10.0.0.3, reporting an IP address of 10.0.0.3. > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
If you have 1 member server, you could enabe nmbd in that server. Or install : llmnrd on linux and/or avahi-deamon if you dont have a member. And make sure you can use "proxy dns" as in, The primary DNS domain on linux should match (see in windows) CMD: ipconfig /all The : - primay dns suffix - DNS Suffix search order Then you are able to use \\hostname or \\hostname.FQ.DN.TLD Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Michael Jones via samba > Verzonden: maandag 13 juli 2020 5:29 > Aan: sambalist > Onderwerp: [Samba] Problem with network browsing > > I'm trying to diagnose why my windows 10 clients can't do > network browsing. > The network neighborhood doesn't show any of my machines > running samba. > > I've verified that all of my samba hosts are running nmbd! > > I've reached the end of my ability to debug this, so I could > really use > some help from the list to figure out why this isn't working. > > I've isolated the situation down to the simplest setup I could manage. > Normally I have about 5 different machines running file > shares, but I've > turned all but one of them off for this investigation. > > The test case is: 3 Gentoo systems, 1 windows 10 system. > > Gentoo: > dc1 is my domain controller (uses the "samba" binary, instead > of smbd / > nmbd / winbindd, directly) > mimir is joined to the domain of dc1. Has no file shares. > Runs only "nmbd" > and "winbindd". Should act as the master browser for netbios. > userfiles is joined to the domain of dc1, has file shares. > Runs smbd, nmdb, > winbindd > > The windows 10 system is just a windows 10 system, joined to > the domain of > dc1. > > I've used "ntbstat -a mimir" from the windows 10 machine to confirm it > thinks that mimir is the network browser. > > I can log into the network shares without issue, but the > Network browser > from Windows Explorer does not show any of my samba hosts. > However, it does > show other things, like Google Chromecasts, Printers, and > other network > infrastructure. > > Any advice? > > ############################################### > Samba version > ############################################### > 4.11.8 > > ############################################### > DC1's config follows > ############################################### > [global] > server role = active directory domain controller > dns forwarder = 10.0.0.1 > idmap_ldb:use rfc2307 = yes > > workgroup = NETWORK-1 > realm = NETWORK-1.NET > hosts allow = 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 > 127.0.0.1 fe80::/10 fd00::/8 ::1 LOCAL > > server min protocol = SMB3 > client min protocol = SMB3 > > #Security settings > invalid users = nobody root > follow symlinks = false > > # The autorid map type auto-selects which UID to map to which > microsoft UID. > # Not entirely certain if UIDs will map properly across linux > machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > create mask = 0666 > directory mask = 0777 > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > > ############################################### > Mimir's config follows > ############################################### > [global] > security = ADS > workgroup = NETWORK-1 > realm = NETWORK-1.NET > > #Security settings > invalid users = nobody root > # Waiting on Root Explorer to fix bug > server min protocol = SMB2 > client min protocol = SMB2 > > # The autorid map type auto-selects which UID to map to which > microsoft UID. > # Not entirely certain if UIDs will map properly across linux > machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > obey pam restrictions = no > kerberos method = secrets and keytab > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > winbind refresh tickets = yes > winbind offline logon = yes > ## > # Set the amount of time to cache usernames / passwords to 30 days. > # That should be long enough to reliably re-establish an > internet connection > # between logins. > ## > winbind cache time = 2592000 > > #Auto detection settings > domain master = yes > local master = yes > preferred master = yes > os level = 255 > > > ############################################### > Userfiles's config follows > ############################################### > [global] > security = ADS > workgroup = NETWORK-1 > realm = NETWORK-1.NET > > #Security settings > invalid users = nobody root > # Waiting on Root Explorer to fix bug > server min protocol = SMB2 > client min protocol = SMB2 > > # The autorid map type auto-selects which UID to map to which > microsoft UID. > # Not entirely certain if UIDs will map properly across linux > machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > > username map = /etc/samba/user.map > > allow trusted domains = no > template shell = /bin/bash > template homedir = /home/%U > > obey pam restrictions = no > kerberos method = secrets and keytab > > winbind use default domain = yes > winbind enum users = yes > winbind enum groups = yes > winbind nested groups = yes > winbind refresh tickets = yes > winbind offline logon = yes > ## > # Set the amount of time to cache usernames / passwords to 30 days. > # That should be long enough to reliably re-establish an > internet connection > # between logins. > ## > winbind cache time = 2592000 > > [Mikes_Files] > comment = Mike's Files > path = /media/raid/userfiles/jonesmz/ > valid users = jonesmz > force user = jonesmz > > ############################################### > Log from running the "smbtree" command > ############################################### > mimir /var/log/samba # smbtree --user jonesmz -d10 > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > lp_load_ex: refreshing parameters > Initialising global parameters > rlimit_max: increasing rlimit_max (1024) to minimum Windows > limit (16384) > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > Processing section "[global]" > doing parameter security = ADS > doing parameter workgroup = NETWORK-1 > doing parameter realm = NETWORK-1.NET > doing parameter log file = /var/log/samba/log.%L.%m > doing parameter log level = 2 > doing parameter max log size = 100 > doing parameter invalid users = nobody root > doing parameter server min protocol = SMB2 > doing parameter client min protocol = SMB2 > doing parameter client NTLMv2 auth = Yes > doing parameter client lanman auth = No > doing parameter client plaintext auth = No > doing parameter follow symlinks = false > doing parameter idmap config * : backend = autorid > doing parameter idmap config * : range = 1000000-19999999 > doing parameter username map = /etc/samba/user.map > doing parameter allow trusted domains = no > doing parameter template shell = /bin/bash > doing parameter template homedir = /home/%U > doing parameter obey pam restrictions = no > doing parameter kerberos method = secrets and keytab > doing parameter winbind use default domain = yes > doing parameter winbind enum users = yes > doing parameter winbind enum groups = yes > doing parameter winbind nested groups = yes > doing parameter winbind refresh tickets = yes > doing parameter winbind offline logon = yes > doing parameter winbind cache time = 2592000 > doing parameter rpc_daemon:fssd = fork > doing parameter registry shares = yes > doing parameter include = registry > doing parameter registry shares = yes > registry_init_smbconf called > regdb_init: registry db openend. refcount reset (1) > reghook_cache_init: new tree with default ops 0x7f3d43d83140 > for key [] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > reghook_cache_add: Adding ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_add: Enter > pathtree_add: Successfully added node > [HKLM\SOFTWARE\Samba\smbconf] to tree > pathtree_add: Exit > regdb_close: decrementing refcount (1->0) > regdb_open: registry db opened. refcount reset (1) > regkey_open_onelevel: name = [HKLM] > regdb_open: incrementing refcount (1->2) > reghook_cache_find: Searching for keyname [\HKLM] > pathtree_find: Enter [\HKLM] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM] > regkey_open_onelevel: name = [SOFTWARE] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > pathtree_find: Enter [\HKLM\SOFTWARE] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key [\HKLM\SOFTWARE] > regkey_open_onelevel: name = [Samba] > regdb_open: incrementing refcount (3->4) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d83140 for key > [\HKLM\SOFTWARE\Samba] > regkey_open_onelevel: name = [smbconf] > regdb_open: incrementing refcount (4->5) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > regdb_close: decrementing refcount (5->4) > regdb_close: decrementing refcount (4->3) > regdb_close: decrementing refcount (3->2) > process_registry_service: service name global > regkey_open_onelevel: name = [global] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f3d43d831a0 for key > [\HKLM\SOFTWARE\Samba\smbconf\global] > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > regdb_close: decrementing refcount (3->2) > doing parameter load printers = no > doing parameter printing = bsd > doing parameter printcap name = /dev/null > doing parameter disable spoolss = yes > doing parameter include = /etc/samba/smb_perf.conf > Processing section "[global]" > doing parameter strict locking = no > doing parameter strict allocate = yes > doing parameter min receivefile size = 16384 > doing parameter use sendfile = true > doing parameter include = /etc/samba/smb-%L.conf > Processing section "[global]" > doing parameter domain master = yes > doing parameter local master = yes > doing parameter preferred master = yes > doing parameter os level = 255 > pm_process() returned Yes > lp_servicenumber: couldn't find homes > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > added interface general ip=10.0.0.2 bcast=10.255.255.255 > netmask=255.0.0.0 > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > Opening cache file at /var/lock/samba/gencache.tdb > name NETWORK-1#1D found. > remove_duplicate_addrs2: looking for duplicate address/port pairs > Enter NETWORK-1\jonesmz's password: > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > name_status_find: looking up *#00 at 10.0.0.2 > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > > > > ############################################### > Log from running the "smbtree" command, with the broadcast flag > ############################################### > mimir /var/log/samba # smbtree --user jonesmz -b -d10 > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > lp_load_ex: refreshing parameters > Initialising global parameters > rlimit_max: increasing rlimit_max (1024) to minimum Windows > limit (16384) > INFO: Current debug levels: > all: 10 > tdb: 10 > printdrivers: 10 > lanman: 10 > smb: 10 > rpc_parse: 10 > rpc_srv: 10 > rpc_cli: 10 > passdb: 10 > sam: 10 > auth: 10 > winbind: 10 > vfs: 10 > idmap: 10 > quota: 10 > acls: 10 > locking: 10 > msdfs: 10 > dmapi: 10 > registry: 10 > scavenger: 10 > dns: 10 > ldb: 10 > tevent: 10 > auth_audit: 10 > auth_json_audit: 10 > kerberos: 10 > drs_repl: 10 > smb2: 10 > smb2_credits: 10 > dsdb_audit: 10 > dsdb_json_audit: 10 > dsdb_password_audit: 10 > dsdb_password_json_audit: 10 > dsdb_transaction_audit: 10 > dsdb_transaction_json_audit: 10 > dsdb_group_audit: 10 > dsdb_group_json_audit: 10 > Processing section "[global]" > doing parameter security = ADS > doing parameter workgroup = NETWORK-1 > doing parameter realm = NETWORK-1.NET > doing parameter log file = /var/log/samba/log.%L.%m > doing parameter log level = 2 > doing parameter max log size = 100 > doing parameter invalid users = nobody root > doing parameter server min protocol = SMB2 > doing parameter client min protocol = SMB2 > doing parameter client NTLMv2 auth = Yes > doing parameter client lanman auth = No > doing parameter client plaintext auth = No > doing parameter follow symlinks = false > doing parameter idmap config * : backend = autorid > doing parameter idmap config * : range = 1000000-19999999 > doing parameter username map = /etc/samba/user.map > doing parameter allow trusted domains = no > doing parameter template shell = /bin/bash > doing parameter template homedir = /home/%U > doing parameter obey pam restrictions = no > doing parameter kerberos method = secrets and keytab > doing parameter winbind use default domain = yes > doing parameter winbind enum users = yes > doing parameter winbind enum groups = yes > doing parameter winbind nested groups = yes > doing parameter winbind refresh tickets = yes > doing parameter winbind offline logon = yes > doing parameter winbind cache time = 2592000 > doing parameter rpc_daemon:fssd = fork > doing parameter registry shares = yes > doing parameter include = registry > doing parameter registry shares = yes > registry_init_smbconf called > regdb_init: registry db openend. refcount reset (1) > reghook_cache_init: new tree with default ops 0x7f09a7972140 > for key [] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports] > regdb_unpack_values: value[0]: name[Samba Printer Port] len[2] > regdb_fetch_values: Looking for values of key > [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers] > regdb_unpack_values: value[0]: name[DefaultSpoolDirectory] len[70] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > regdb_fetch_values: Looking for values of key > [HKLM\SYSTEM\CurrentControlSet\Services\Eventlog] > regdb_unpack_values: value[0]: name[DisplayName] len[20] > regdb_unpack_values: value[1]: name[ErrorControl] len[4] > reghook_cache_add: Adding ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_add: Enter > pathtree_add: Successfully added node > [HKLM\SOFTWARE\Samba\smbconf] to tree > pathtree_add: Exit > regdb_close: decrementing refcount (1->0) > regdb_open: registry db opened. refcount reset (1) > regkey_open_onelevel: name = [HKLM] > regdb_open: incrementing refcount (1->2) > reghook_cache_find: Searching for keyname [\HKLM] > pathtree_find: Enter [\HKLM] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM] > regkey_open_onelevel: name = [SOFTWARE] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE] > pathtree_find: Enter [\HKLM\SOFTWARE] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key [\HKLM\SOFTWARE] > regkey_open_onelevel: name = [Samba] > regdb_open: incrementing refcount (3->4) > reghook_cache_find: Searching for keyname [\HKLM\SOFTWARE\Samba] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a7972140 for key > [\HKLM\SOFTWARE\Samba] > regkey_open_onelevel: name = [smbconf] > regdb_open: incrementing refcount (4->5) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf] > regdb_close: decrementing refcount (5->4) > regdb_close: decrementing refcount (4->3) > regdb_close: decrementing refcount (3->2) > process_registry_service: service name global > regkey_open_onelevel: name = [global] > regdb_open: incrementing refcount (2->3) > reghook_cache_find: Searching for keyname > [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Enter [\HKLM\SOFTWARE\Samba\smbconf\global] > pathtree_find: Exit > reghook_cache_find: found ops 0x7f09a79721a0 for key > [\HKLM\SOFTWARE\Samba\smbconf\global] > key [HKLM\SOFTWARE\Samba\smbconf\global] not found > regdb_close: decrementing refcount (3->2) > doing parameter load printers = no > doing parameter printing = bsd > doing parameter printcap name = /dev/null > doing parameter disable spoolss = yes > doing parameter include = /etc/samba/smb_perf.conf > Processing section "[global]" > doing parameter strict locking = no > doing parameter strict allocate = yes > doing parameter min receivefile size = 16384 > doing parameter use sendfile = true > doing parameter include = /etc/samba/smb-%L.conf > Processing section "[global]" > doing parameter domain master = yes > doing parameter local master = yes > doing parameter preferred master = yes > doing parameter os level = 255 > pm_process() returned Yes > lp_servicenumber: couldn't find homes > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > added interface general ip=10.0.0.2 bcast=10.255.255.255 > netmask=255.0.0.0 > name_resolve_bcast: Attempting broadcast lookup for name > __MSBROWSE__<0x1> > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes > trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 > ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( 10.0.0.2 ) > validator failed > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes > trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 > ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( ) > validator failed > name_status_find: looking up *#00 at 10.0.0.2 > Opening cache file at /var/lock/samba/gencache.tdb > gencache_set_data_blob: Adding cache entry with > key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Wed Dec 31 06:00:00 PM 1969 CST] (-1594610080 > seconds in the > past) > namecache_status_fetch: no entry for NBT/*#00.1D.10.0.0.2 found. > startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. > Error was No such > file or directory > parse_nmb: packet id = 15345 > nmb packet from 10.0.0.2(35072) header: id=15345 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 > answers 0 char .MIMIR hex > 074D494D495220202020202020202020 > answers 10 char ...MIMIR hex > 0004004D494D49522020202020202020 > answers 20 char ...MIMIR hex > 20200304004D494D4952202020202020 > answers 30 char ....__MSBRO hex > 2020202020040001025F5F4D5342524F > answers 40 char WSE__....NETWORK hex > 5753455F5F020184004E4554574F524B > answers 50 char -1 ...NETWO hex > 2D312020202020200084004E4554574F > answers 60 char RK-1 ...NET hex > 524B2D312020202020201D04004E4554 > answers 70 char WORK-1 .... hex > 574F524B2D312020202020201E840000 > answers 80 char ................ hex > 00000000000000000000000000000000 > answers 90 char ................ hex > 00000000000000000000000000000000 > answers a0 char ............. hex 00000000000000000000000000 > MIMIR#00: flags = 0x04 > MIMIR#03: flags = 0x04 > MIMIR#20: flags = 0x04 > __MSBROWSE__#01: flags = 0x84 > NETWORK-1#00: flags = 0x84 > NETWORK-1#1d: flags = 0x04 > NETWORK-1#1e: flags = 0x84 > gencache_set_data_blob: Adding cache entry with > key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Sun Jul 12 10:25:40 PM 2020 CDT] (660 seconds ahead) > namecache_status_store: entry NBT/*#00.1D.10.0.0.2 -> NETWORK-1 > name_status_find: name found, name NETWORK-1 ip address is 10.0.0.2 > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > name NETWORK-1#1D found. > remove_duplicate_addrs2: looking for duplicate address/port pairs > found master browser NETWORK-1, 10.0.0.2 > Enter NETWORK-1\jonesmz's password: > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > name_status_find: looking up *#00 at 10.0.0.2 > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > Unable to find master browser by broadcast > > > > > > ############################################### > /var/log/samba/log.MIMIR.nmbd > ############################################### > mimir /var/log/samba # cat log.MIMIR.nmbd > [2020/07/12 21:47:18.573443, 2] > ../../source3/lib/interface.c:343(add_interface) > added interface ceph-public > ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > [2020/07/12 21:47:18.573706, 2] > ../../source3/lib/interface.c:343(add_interface) > added interface general ip=10.0.0.2 bcast=10.255.255.255 > netmask=255.0.0.0 > [2020/07/12 21:47:18.573905, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:10.0.0.2 Broadcast address:10.255.255.255 Subnet > mask:255.0.0.0 > [2020/07/12 21:47:18.573967, 2] > ../../source3/nmbd/nmbd_subnetdb.c:299(create_subnets) > create_subnets: ignoring non IPv4 interface. > [2020/07/12 21:47:18.574019, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet > mask:0.0.0.0 > [2020/07/12 21:47:18.574073, 2] > ../../source3/nmbd/nmbd_subnetdb.c:180(make_subnet) > making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 > Subnet mask:0.0.0.0 > [2020/07/12 21:47:18.574184, 2] > ../../source3/nmbd/nmbd_lmhosts.c:42(load_lmhosts_file) > load_lmhosts_file: Can't open lmhosts file > /etc/samba/lmhosts. Error was > No such file or directory > [2020/07/12 21:47:18.584259, 0] > ../../lib/util/become_daemon.c:135(daemon_ready) > daemon_ready: daemon 'nmbd' finished starting up and ready to serve > connections > [2020/07/12 21:47:18.585679, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:18.585829, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:47:18.587863, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1d>. > This response was from IP 10.0.0.154, reporting an IP address of > 10.0.0.154. > [2020/07/12 21:47:18.588083, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:47:18.588205, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > [2020/07/12 21:47:25.606229, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup > NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:27.610464, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup > NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:29.611991, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup > NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:31.613930, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup > NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:33.615937, 2] > ../../source3/nmbd/nmbd_elections.c:40(send_election_dgram) > send_election_dgram: Sending election packet for workgroup > NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:47:33.616324, 2] > ../../source3/nmbd/nmbd_elections.c:200(run_elections) > run_elections: >>> Won election for workgroup NETWORK-1 on subnet > 10.0.0.2 <<< > [2020/07/12 21:47:33.616393, 2] > ../../source3/nmbd/nmbd_become_lmb.c:537(become_local_master_browser) > become_local_master_browser: Starting to become a master browser for > workgroup NETWORK-1 on subnet 10.0.0.2 > [2020/07/12 21:47:41.482842, 0] > ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) > ***** > > Samba name server MIMIR is now a local master browser for workgroup > NETWORK-1 on subnet 10.0.0.2 > > ***** > [2020/07/12 21:52:36.083840, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:52:36.084022, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:52:36.086618, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:52:36.087929, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > [2020/07/12 21:57:33.775070, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 21:57:33.775542, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 21:57:33.781366, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 21:57:33.781759, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > [2020/07/12 22:02:48.653973, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:02:48.654167, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:02:48.663763, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:02:48.664086, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > [2020/07/12 22:07:49.623810, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:07:49.624015, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:07:49.629685, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:07:49.631020, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > [2020/07/12 22:12:52.243758, 0] > ../../source3/nmbd/nmbd_become_dmb.c:294(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: > Attempting to become domain master browser on workgroup NETWORK-1 on > subnet 10.0.0.2 > [2020/07/12 22:12:52.243962, 0] > ../../source3/nmbd/nmbd_become_dmb.c:306(become_domain_master_ > browser_bcast) > become_domain_master_browser_bcast: querying subnet > 10.0.0.2 for domain > master browser on workgroup NETWORK-1 > [2020/07/12 22:12:52.245073, 0] > ../../source3/nmbd/nmbd_become_dmb.c:237(become_domain_master_ > query_success) > become_domain_master_query_success: > There is already a domain master browser at IP 10.0.0.3 for > workgroup > NETWORK-1 registered on subnet 10.0.0.2. > [2020/07/12 22:12:52.245285, 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > query_name_response: Multiple (2) responses received for a query on > subnet 10.0.0.2 for name NETWORK-1<1b>. > This response was from IP 10.0.0.3, reporting an IP address > of 10.0.0.3. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On 13/07/2020 08:31, L.P.H. van Belle via samba wrote:> If you have 1 member server, you could enabe nmbd in that server. > Or install : llmnrd on linux and/or avahi-deamon if you dont have a member. > > And make sure you can use "proxy dns" as in, > The primary DNS domain on linux should match (see in windows) CMD: ipconfig /all > The : > - primay dns suffix > - DNS Suffix search order > > Then you are able to use \\hostname or \\hostname.FQ.DN.TLD >Hi Louis, I can do that on my domain without any of my Linux machines running nmbd. Rowland
Yes when its correctly installed, you can. :-)) Thats the "default". When you cant, well, then the hint is below ;-) Not that i advice use network browing or LLMNR in windows these days, can be handy, but.. I think it sucks big time, but thats a whole other discussion. ;-) I turned all network browsing of windows and linux. ( at least in the company network ) For home/mediadevices, then yes, its handy. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: maandag 13 juli 2020 9:46 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Problem with network browsing > > On 13/07/2020 08:31, L.P.H. van Belle via samba wrote: > > If you have 1 member server, you could enabe nmbd in that server. > > Or install : llmnrd on linux and/or avahi-deamon if you > dont have a member. > > > > And make sure you can use "proxy dns" as in, > > The primary DNS domain on linux should match (see in > windows) CMD: ipconfig /all > > The : > > - primay dns suffix > > - DNS Suffix search order > > > > Then you are able to use \\hostname or \\hostname.FQ.DN.TLD > > > Hi Louis, I can do that on my domain without any of my Linux machines > running nmbd. > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On Mon, Jul 13, 2020 at 2:03 AM Rowland penny via samba < samba at lists.samba.org> wrote:> On 13/07/2020 04:29, Michael Jones via samba wrote: > > I'm trying to diagnose why my windows 10 clients can't do network > browsing. > > The network neighborhood doesn't show any of my machines running samba. > > > > Any advice? > > > Sorry, but it looks like you really do not understand AD ;-) >Of course I don't. Barely anyone does. However, the samba logs could have a note in nmbd saying "We detect that you have ADC security enabled, and min protocol of SMB2 / SMB3, as a result, network neighborhood most likely will not work due to.......".> > Netbios was a way for NT4-style domain computers to find each other,and > you require SMBv1 for it to work. Because you have set SMBv3 as the > minimum level on the DC, this is what will be used in all connections to > the DC, you have set the 'minimums' to the maximum settings. > > AD uses dns instead of netbios and as your DC has a built in dns server, > you should use dns instead of attempting to use netbios. >Am I to understand that the servers should still be showing up in the network list, because of the AD DC's DNS ?> > I would remove these lines from the DC: > > server min protocol = SMB3 # SMB2_02 > client min protocol = SMB3 # SMB2_02 >Could you elaborate?> > #Security settings > invalid users = nobody root > follow symlinks = false > > # The autorid map type auto-selects which UID to map to which microsoft > UID. > # Not entirely certain if UIDs will map properly across linux machines. > Probably worth looking into. > # Don't shrink the UID range, apparently some users end up with UIDs > towards the max size. Unclear why. > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 >This was necessary to get things working on my setup a few years ago, around Samba 4.4. Has something changed that makes this unneeded?> > They either have no place on a DC, or actually stop your DC from working > correctly. >Then why is Samba not warning about these being problematic ?> Windows now uses Network Discovery instead of Network Browsing, if you > run this on all your Samba machines: > > https://github.com/christgau/wsdd > > Your Samba machines will appear in Explorer on Windows, your Linux > machines should use Avahi to get something similar. > > Rowland >Thank you for the advise.
> Windows now uses Network Discovery instead of Network Browsing, if you > run this on all your Samba machines: > > https://github.com/christgau/wsdd > > Your Samba machines will appear in Explorer on Windows, your Linux > machines should use Avahi to get something similar. > > Rowland >Is this something that will be included in Samba in the future?
> > > > ############################################### > Log from running the "smbtree" command, with the broadcast flag > ############################################### > mimir /var/log/samba # smbtree --user jonesmz -b -d10 > lp_servicenumber: couldn't find homes > added interface ceph-public ip=fda8:941:2491:1699:60fa:e622:8345:2162 > bcast= netmask=ffff:ffff:ffff:ffff:: > added interface general ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0 > name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1> > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( 10.0.0.2 ) > validator failed > parse_nmb: packet id = 22832 > nmb packet from 10.0.0.2(35072) header: id=22832 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 > answers 0 char ...... hex 80000A000002 > Got a positive name query response from 10.0.0.2 ( ) > validator failed > name_status_find: looking up *#00 at 10.0.0.2 > Opening cache file at /var/lock/samba/gencache.tdb > gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Wed Dec 31 06:00:00 PM 1969 CST] (-1594610080 seconds in the > past) > namecache_status_fetch: no entry for NBT/*#00.1D.10.0.0.2 found. > startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No > such file or directory > parse_nmb: packet id = 15345 > nmb packet from 10.0.0.2(35072) header: id=15345 opcode=Query(0) > response=Yes > header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 > answers 0 char .MIMIR hex > 074D494D495220202020202020202020 > answers 10 char ...MIMIR hex > 0004004D494D49522020202020202020 > answers 20 char ...MIMIR hex > 20200304004D494D4952202020202020 > answers 30 char ....__MSBRO hex > 2020202020040001025F5F4D5342524F > answers 40 char WSE__....NETWORK hex > 5753455F5F020184004E4554574F524B > answers 50 char -1 ...NETWO hex > 2D312020202020200084004E4554574F > answers 60 char RK-1 ...NET hex > 524B2D312020202020201D04004E4554 > answers 70 char WORK-1 .... hex > 574F524B2D312020202020201E840000 > answers 80 char ................ hex > 00000000000000000000000000000000 > answers 90 char ................ hex > 00000000000000000000000000000000 > answers a0 char ............. hex 00000000000000000000000000 > MIMIR#00: flags = 0x04 > MIMIR#03: flags = 0x04 > MIMIR#20: flags = 0x04 > __MSBROWSE__#01: flags = 0x84 > NETWORK-1#00: flags = 0x84 > NETWORK-1#1d: flags = 0x04 > NETWORK-1#1e: flags = 0x84 > gencache_set_data_blob: Adding cache entry with key=[NBT/*#00.1D.10.0.0.2] > and timeout=[Sun Jul 12 10:25:40 PM 2020 CDT] (660 seconds ahead) > namecache_status_store: entry NBT/*#00.1D.10.0.0.2 -> NETWORK-1 > name_status_find: name found, name NETWORK-1 ip address is 10.0.0.2 > internal_resolve_name: looking up NETWORK-1#1d (sitename (null)) > name NETWORK-1#1D found. > remove_duplicate_addrs2: looking for duplicate address/port pairs > found master browser NETWORK-1, 10.0.0.2 > Enter NETWORK-1\jonesmz's password: > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > name_status_find: looking up *#00 at 10.0.0.2 > namecache_status_fetch: key NBT/*#00.00.10.0.0.2 -> MIMIR > Connecting to 10.0.0.2 at port 445 > Connecting to 10.0.0.2 at port 139 > Unable to find master browser by broadcast > >Does anyone know why the "smbtree" program is failing to find any of the other services I have running? Why is it printing: "validator failed" to the log?
On 13/07/2020 14:05, Michael Jones via samba wrote:> Does anyone know why the "smbtree" program is failing to find any of the > other services I have running? > > Why is it printing: "validator failed" to the log?Because you are not using SMBv1 Rowland