Samba - NetBios Alias

Pawel Worach noside at home.se
Fri Jul 16 05:08:37 GMT 1999


Hi.

I have found some strange behavior with (i think) netbios
aliases. I started Server Manager and selected properties
for the server alias (SAJD-SRV01), and then Windows NT
says that the password is incorrect, byt it works for the "real" name of
the server.

That i noticed in the host log is that samba kicks me out and closes
all connections. And one more thing is that is says that user
"administrator" does not exist, but it does and the username level
is set to 1 so it should get it if I log in as Admin... or dMin...

All computers (even the alias) are members of the
domain "SAJD-DOMA" and all of them have lines in /etc/passwd and 
/usr/lib/samba/private/smbpasswd, is this a bug of a feature :)

Sambaversion: CVS as of 1999-07-16 (2.1.0-prealpha) built with
gcc 2.3.2.3 on Linux/x86 2.3.10 (Slackware).

// Pawel Worach <sajd at linux.nu> <root at sajd.net>

Here are some snips from my files....

from the host log file:
  Transaction 2 of length 204
[1999/07/16 06:24:12, 3] smbd/process.c:switch_message(402)
  switch message SMBsesssetupX (pid 954)
[1999/07/16 06:24:12, 3] smbd/reply.c:reply_sesssetup_and_X(640)
  Domain=[SAJD-DOMA]  NativeOS=[Windows NT 1381] NativeLanMan=[]
[1999/07/16 06:24:12, 3] smbd/reply.c:reply_sesssetup_and_X(643)
  sesssetupX:name=[Administrator]
[1999/07/16 06:24:12, 3] smbd/password.c:pass_check_smb(494)
  Couldn't find user administrator
[1999/07/16 06:24:12, 0] smbd/reply.c:reply_sesssetup_and_X(723)
  NT Password did not match ! Defaulting to Lanman
[1999/07/16 06:24:12, 3] smbd/password.c:pass_check_smb(494)
  Couldn't find user administrator
[1999/07/16 06:24:12, 3] smbd/error.c:error_packet(138)
  error packet at line 733 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[1999/07/16 06:24:12, 3] smbd/error.c:error_packet(143)
  error string = No such file or directory   <--- FROM ME, WHICH FILE???
[1999/07/16 06:24:12, 3] smbd/process.c:smbd_process(810)
  end of file from client
[1999/07/16 06:24:12, 2] smbd/server.c:exit_server(408)
  Closing connections
[1999/07/16 06:24:12, 3] smbd/server.c:exit_server(433)
  Server exit (normal exit)
[1999/07/16 06:24:12, 3] smbd/process.c:process_smb(569)
  Transaction 1 of length 174
[1999/07/16 06:24:12, 3] smbd/process.c:switch_message(402)
  switch message SMBnegprot (pid 955)
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)
  Requested protocol [XENIX CORE]
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)
  Requested protocol [LANMAN1.0]
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)
  Requested protocol [Windows for Workgroups 3.1a]
[1999/07/16 06:24:12, 3] smbd/negprot.c:reply_negprot(346)


smb.conf:
# Global parameters
        workgroup = SAJD-DOMA
        netbios name = EVIL
        netbios aliases = SAJD-SRV01
        server string = Linux Samba PDC
        interfaces = 127.0.0.1 192.168.1.1/24
        encrypt passwords = Yes
        update encrypted = Yes
        server ntlmv2 = Auto
        client ntlmv2 = Auto
        username level = 1
        unix password sync = Yes
        log level = 3
        syslog = 3
        log file = /var/log/samba/host.%m
        max log size = 0
        announce version = 5.0
        --- SNIP ---
        local group map = /usr/lib/samba/private/localgroup.map
        domain group map = /usr/lib/samba/private/domaingroup.map
        domain user map = /usr/lib/samba/private/domainuser.map
        logon script = logon.bat
        logon path = \\%N\profiles\%U
        --- SNIP ---
  
domainuser.map:
root = administrator


More information about the samba-ntdom mailing list