Samba not announcing netbios name

Status
Not open for further replies.

epretorious

Dabbler
Joined
Jul 28, 2011
Messages
10
Instead of responding the netbios name configured in /usr/local/etc/smb.conf...
Code:
[eric@freenas /]$ cat /usr/local/etc/smb.conf
[global]
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    read raw = yes
    write raw = yes
    oplocks = yes
    max xmit = 65535
    deadtime = 15
    display charset = LOCALE
    max log size = 10
    syslog only = yes
    syslog = yes
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    getwd cache = yes
    guest account = nobody
    map to guest = Bad Password
    netbios name = pretorious
    workgroup = pretorious
    server string = Pretorious File Share
    use sendfile = yes
    large readwrite = no
    store dos attributes = yes
    local master = yes
    time server = yes
    security = user
    create mask = 0666
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 10
    aio read size = 1
    aio write size = 1

[Pretorious]
    path = /mnt/main/pretorious
    printable = no
    veto files = /.snap/.windows/
    comment = Pretorious Family CIFS File Share
    writeable = yes
    browseable = yes
    inherit owner = no
    inherit permissions = no
    vfs objects =  
    hosts allow = 192.168.0.0/24
    inherit acls = Yes
    map archive = No
    map readonly = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = yes

Samba [FreeNAS-8.0.2-RELEASE-i386 (8288)] is announcing the system's hostname instead:
Code:
[eric@freenas /]$ smbclient -L pretorious
Enter eric's password: 
Connection to pretorious failed (Error NT_STATUS_UNSUCCESSFUL)

[eric@freenas /]$ smbclient -L freenas
Enter eric's password: 
Domain=[PRETORIOUS] OS=[Unix] Server=[Samba 3.5.11]

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       IPC Service (Pretorious File Share)
	Pretorious      Disk      Pretorious Family CIFS File Share
Domain=[PRETORIOUS] OS=[Unix] Server=[Samba 3.5.11]

	Server               Comment
	---------            -------
	PRETORIOUS           Pretorious File Share

	Workgroup            Master
	---------            -------
	PRETORIOUS

Ideas?
 

epretorious

Dabbler
Joined
Jul 28, 2011
Messages
10
Thanks, protosd.

I wasn't able to find an open bug report for netbios name bug. Has this ticket already been resolved? Will the fix be committed to the 8.0.2-RELEASE branch? (I really don't like to change branches just for bug fixes - It's not a good sysadmin practice, IMHO.)
 

epretorious

Dabbler
Joined
Jul 28, 2011
Messages
10
I think this is a known bug that is being fixed in 8.0.3. There's an 8.03 BETA-2 available if you want to give it a try. BETA-3 should be out anytime now.

I did a clean install [FreeNAS-8.0.3-RC1-x64 (9250)] but that didn't seem to fix it:

Code:
[eric@freenas /]$ smbclient -L nas1
Enter eric's password: 
Connection to nas1 failed (Error NT_STATUS_UNSUCCESSFUL)


Have I missed something?
Code:
[eric@freenas /]$ cat /usr/local/etc/smb.conf
[global]
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    read raw = yes
    write raw = yes
    oplocks = yes
    max xmit = 65535
    deadtime = 15
    display charset = LOCALE
    max log size = 10
    syslog only = yes
    syslog = yes
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    getwd cache = yes
    guest account = nobody
    map to guest = Bad Password
    netbios name = NAS1
    workgroup = pretorious
    server string = FreeNAS Server
    use sendfile = yes
    large readwrite = no
    store dos attributes = yes
    local master = yes
    time server = yes
    security = user
    create mask = 0666
    create mask = 0666
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 1
    aio read size = 1
    aio write size = 1


[Pretorious]
    path = /mnt/mainmirror/pretorious
    printable = no
    veto files = /.snap/.windows/
    comment = Pretorious Family Share
    writeable = yes
    browseable = yes
    inherit owner = no
    inherit permissions = no
    vfs objects =  
    hosts allow = 192.168.0.254/24
    inherit acls = Yes
    map archive = No
    map readonly = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = yes


Code:
[root@freenas] ~# date
Wed Dec 28 07:37:48 PST 2011

[root@freenas] ~# tail -20 /var/log/samba/log.smbd
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/27 21:46:53.636763,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/27 21:46:54.496441,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/27 21:46:54.791369,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/27 21:52:07.706969,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/27 22:01:07,  0] smbd/server.c:1045(main)
  smbd version 3.6.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/12/27 22:01:07.704654,  1] smbd/files.c:204(file_init)
  file_init: Information only: requested 16384 open files, 11075 are available.
[2011/12/27 22:04:36.878772,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/28 07:27:45.084901,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.
[2011/12/28 07:27:45.389229,  1] smbd/process.c:456(receive_smb_talloc)
  read_smb_length_return_keepalive failed for client 192.168.0.20 read error = NT_STATUS_END_OF_FILE.

[root@freenas] ~# tail -20 /var/log/samba/log.nmbd 
  
  Samba name server POS is now a local master browser for workgroup FOOBAR on subnet 192.168.0.250
  
  *****
[2011/12/27 22:00:34,  0] nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet   192.168.0.250: netmask=  255.255.255.0:
  	FOOBAR(1) current master browser = POS
  		POS 40849a23 (FreeNAS Server)
[2011/12/27 22:01:03.485283,  0] nmbd/nmbd.c:66(terminate)
  Got SIGTERM: going down...
[2011/12/27 22:01:07,  0] nmbd/nmbd.c:860(main)
  nmbd version 3.6.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/12/27 22:01:31,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server NAS1 is now a local master browser for workgroup PRETORIOUS on subnet 192.168.0.250
  
  *****
 

sebus

Cadet
Joined
Dec 18, 2012
Messages
4
Anything changed with later updates?

I use:

FreeBSD 8.2-RELEASE-p9 (FREENAS.amd64) #0: Tue Jun 12 08:57:14 PDT 2012

and this version does EXACTLY the same as per subject - only announcing the system's hostname instead

sebus
 
Status
Not open for further replies.
Top