Bug #3013

WINS registrations flood log.nmbd

Added by Davide Principi over 4 years ago. Updated over 4 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-samba
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

The log.nmbd is flooded by WINS registration requests from printer devices.

In log.nmbd:

[2015/01/26 10:29:51,  0] nmbd/nmbd_incomingrequests.c:213(process_name_registration_request)
  process_name_registration_request: unicast name registration request received for name OL148FF4<03> from IP 192.168.192.12 on subnet UNICAST_SUBNET. Error - should be sent to WINS server

Associated revisions

Revision 2ba6acff
Added by Davide Principi over 4 years ago

Removed WinsServerStatus prop. Refs #3013

- wins support is enabled only if server role is PDC

- otherwise, announce to remote WINS server if WinsServerIP is set

- dnsmasq.conf: provide NetBIOS configuration as dhcp-option

- remove WinsServerStatus prop

Revision 7f774643
Added by Davide Principi over 4 years ago

Don't touch WinsServerIP prop in DB migrate fragment. Refs #3013

History

#1 Updated by Filippo Carletti over 4 years ago

Extract from log.nmbd:

...

#2 Updated by Davide Principi over 4 years ago

  • Description updated (diff)
  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#3 Updated by Davide Principi over 4 years ago

Proposed solution:

  • drop WinsServerStatus prop
  • If the WinsServerIP prop is set to another server, set wins support = no, wins server = <VALUE>
  • If the WinsServerIP prop points to the server itself, or is not set at all:
    • if server role is PDC, set wins support = yes
    • in any other case, set wins support = no

#4 Updated by Giacomo Sanchietti over 4 years ago

  • Target version changed from v6.5 to v6.6-rc1

#5 Updated by Davide Principi over 4 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#6 Updated by Davide Principi over 4 years ago

  • Target version changed from v6.6-rc1 to v6.5

#7 Updated by Davide Principi over 4 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case
check cases from the above note#3 are satisfied.

#8 Updated by Davide Principi over 4 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing 6.5:
nethserver-samba-1.4.10-1.1.g2ba6acf.ns6.noarch.rpm
nethserver-samba-1.4.10-1.2.g7f77464.ns6.noarch.rpm

#9 Updated by Giacomo Sanchietti over 4 years ago

  • Assignee set to Giacomo Sanchietti

#10 Updated by Giacomo Sanchietti over 4 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

The property WinsServerStatus is not present on a fresh install and it's removed when installing on an updated system: verified.

This test case is verified:

[root@localhost db]# config getprop smb  ServerRole 
WS

[root@localhost db]# grep wins /etc/samba/smb.conf 
wins support = No
wins server =

Even this one is verified:

[root@localhost db]# config getprop smb  ServerRole 
PDC
[root@localhost db]# grep wins /etc/samba/smb.conf 
wins support = Yes
wins server =

This test case is NOT verified: if the WinsServerIP is set, the value is lost if the server role is set to PDC.
The problem is caused by the migration fragment: /etc/e-smith/db/configuration/migrate/bug3013_ns6.5

[root@localhost db]# config setprop smb WinsServerIP 192.168.1.1
[root@localhost db]# config show smb
smb=service
    AdsLdapAccountsBranch=
    AdsRealm=
    DeadTime=10080
    LogonDrive=Z:
    NetbiosAliasList=
    OsLevel=35
    RoamingProfiles=no
    ServerRole=PDC
    Sid=S-1-5-21-3902530149-2736530706-1333492734
    TCPPorts=139,445
    UseClientDriver=yes
    UseCups=enabled
    WinsServerIP=192.168.1.1
    Workgroup=
    access=private
    status=enabled
[root@localhost db]# signal-event nethserver-samba-update 
[root@localhost db]# grep wins /etc/samba/smb.conf 
wins support = Yes
wins server = 
[root@localhost db]# config show smb
smb=service
    AdsLdapAccountsBranch=
    AdsRealm=
    DeadTime=10080
    LogonDrive=Z:
    NetbiosAliasList=
    OsLevel=35
    RoamingProfiles=no
    ServerRole=PDC
    Sid=S-1-5-21-3902530149-2736530706-1333492734
    TCPPorts=139,445
    UseClientDriver=yes
    UseCups=enabled
    WinsServerIP=
    Workgroup=
    access=private
    status=enabled

If the server is PDC:

config setprop smb WinsServerIP 192.168.1.1
[root@localhost db]# grep wins /etc/samba/smb.conf 
wins support = Yes
wins server = 

if the server is not PDC:

config setprop smb WinsServerIP 192.168.1.1
[root@localhost db]# grep wins /etc/samba/smb.conf 
wins support = No
wins server = 192.168.1.1

#11 Updated by Giacomo Sanchietti over 4 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in 6.5/nethserver-updates and 6.6/nethserver-base:
  • nethserver-samba-1.4.11-1.ns6.src.rpm

Also available in: Atom PDF