[Samba] Sending election packet . . .

Rowland Penny rpenny at samba.org
Thu Jun 28 08:25:19 UTC 2018


On Thu, 28 Jun 2018 09:59:12 +0200
Micha Ballmann via samba <samba at lists.samba.org> wrote:

> Hello Community,
> 
> i have a fileserver as domain member.
> 
> today i found some weird log entries in log.nmbd:
> 
> [2018/06/28 09:25:53.700507,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.102.149
> [2018/06/28 09:25:53.700618,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.105.149
> [2018/06/28 09:25:53.700710,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.20.149
> [2018/06/28 09:30:55.987230,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.102.149
> [2018/06/28 09:30:55.987360,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.105.149
> [2018/06/28 09:30:55.987439,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.20.149
> [2018/06/28 09:35:55.130375,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.102.149
> [2018/06/28 09:35:55.130514,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.105.149
> [2018/06/28 09:35:55.130563,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.20.149
> [2018/06/28 09:41:00.483412,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.102.149
> [2018/06/28 09:41:00.483554,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.105.149
> [2018/06/28 09:41:00.483608,  2] 
> ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
>    send_election_dgram: Sending election packet for workgroup
> DOMAINNAME on subnet 192.168.20.149
> 
> Here is my smb.conf:
> 
> [global]
>          security = ads
>          realm = DOMAINNAME .DE
>          workgroup = DOMAINNAME
>          idmap config *:backend = tdb
>          idmap config *:range = 2000-9999
>          idmap config DOMAINNAME :backend = ad
>          idmap config DOMAINNAME :schema_mode = rfc2307
>          idmap config DOMAINNAME :range = 10000-999999
>          winbind enum users = yes
>          winbind enum groups = yes
>          winbind cache time = 10
>          winbind use default domain = yes
>          client use spnego = yes
>          encrypt passwords = yes
>          restrict anonymous = 2
>          domain master = no
>          local master = no
>          preferred master = no
>          os level = 0
>          vfs objects = acl_xattr
>          map acl inherit = yes
>          store dos attributes = yes
>          log level = 2
> 
> Occurs this problem because i set "domain master = no". I hope you
> can help. Thy very much.
> 
> with best regards
> 
> 

> 

No. it isn't because you set 'domain master = no', it is because you
have set 'log level = 2'.

If you look at the code the log is pointing you at:

../source3/nmbd/nmbd_elections.c:41(send_election_dgram)

You will find this:

	DEBUG(2,("send_election_dgram: Sending election packet for workgroup %s on subnet %s\n",
		workgroup_name, subrec->subnet_name ));

This means that if 'log level' is to '2' or above, log the message, so
if you want the messages to go away, set 'log level' to '0'

Rowland



More information about the samba mailing list