[Samba] Getting netbios alias to work

Tommy.Fallsen at kongsberg.com Tommy.Fallsen at kongsberg.com
Tue Aug 24 06:39:45 GMT 2004


Hi

Need to setup netbios alias on a server. When users connect to sunone they
reach home and some other shares. suntwo is a archive share.
I can't authenticate against the pdc on sunone and suntwo. Ask for user/passwd 
on each netbios alias. Connecting to sun10 works. If i switch to shared on security
and guest ok this setup works. When connecting to the aliases i get:
  startsmbfilepwent_internal: unable to open file /opt/samba/private/smbpasswd. Error was No such file or directory
[2004/08/24 08:25:15, 0] passdb/pdb_smbpasswd.c:(1369)
  unable to open passdb database.
[2004/08/24 08:25:15, 1] smbd/password.c:(545)
  Couldn't find user 'tommyf' in passdb.
[2004/08/24 08:25:15, 1] smbd/reply.c:(1023)
  Rejecting user 'tommyf': authentication failed
[2004/08/24 08:25:15, 3] smbd/error.c:(94)
  error string = No such file or directory
[2004/08/24 08:25:15, 3] smbd/error.c:(113)
  error packet at smbd/reply.c(1025) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2004/08/24 08:25:16, 3] smbd/process.c:(846)
  Transaction 9 of length 193
[2004/08/24 08:25:16, 3] smbd/process.c:(685)
  switch message SMBsesssetupX (pid 20045)
[2004/08/24 08:25:16, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/08/24 08:25:16, 3] smbd/reply.c:(880)
  Domain=[NET2]  NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0]
[2004/08/24 08:25:16, 3] smbd/reply.c:(890)
  sesssetupX:name=[tommyf]
[2004/08/24 08:25:16, 3] libsmb/namequery.c:(769)
  resolve_lmhosts: Attempting lmhosts lookup for name KBG-DC-01<0x20>
[2004/08/24 08:25:16, 3] libsmb/namequery.c:(809)
  resolve_hosts: Attempting host lookup for name KBG-DC-01<0x20>
[2004/08/24 08:25:16, 3] lib/util_sock.c:(845)
  Connecting to 172.18.3.211 at port 445
[2004/08/24 08:25:16, 0] rpc_client/cli_netlogon.c:(157)
  cli_net_auth2: Error NT_STATUS_ACCESS_DENIED
[2004/08/24 08:25:16, 0] rpc_client/cli_login.c:(72)
  cli_nt_setup_creds: auth2 challenge failed
[2004/08/24 08:25:16, 0] smbd/password.c:(1368)
  connect_to_domain_password_server: unable to setup the PDC credentials to machine KBG-DC-01. Error was : NT_STATUS_OK.
[2004/08/24 08:25:16, 0] smbd/password.c:(1601)
  domain_client_validate: Domain password server not available.
[2004/08/24 08:25:16, 2] passdb/pdb_smbpasswd.c:(170)
  startsmbfilepwent_internal: unable to open file /opt/samba/private/smbpasswd. Error was No such file or directory
[2004/08/24 08:25:16, 0] passdb/pdb_smbpasswd.c:(1369)
  unable to open passdb database.

I can connect to the netbios aliases if i create smbpasswd and add my user to it. But i want to use the pdc for auth.

Is it possible to get this type of setup to work?

Test Case:

Sunone
 /export/free/tmp

Suntwo
 /export/free/tmp2

Config:
[global]
        workgroup = NET2
        security = DOMAIN
	  netbios name = sun10
        encrypt passwords = Yes
        password server = kbg-dc-01
        log level = 3
        preferred master = No
        local master = No
        domain master = No
        wins proxy = Yes
        wins server = *.*.*.*
        remote announce = *.*.*.*
        netbios aliases = sunone suntwo
        include = /opt/samba/lib/smb.%L

smb.sunone config:

        netbios name = sunone
[tmp]
        comment = tmp
        path = /export/free/tmp
        read only = No

smb.suntwo config:
	netbios name = suntwo
[tmp2]
        comment = tmp2
        path = /export/free/tmp2
        read only = No

Thanks

Tommy Fallsen

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tommy Fallsen	System Administrator 
			Kongsberg Defence & Aerospace
			Email: tommyf at kongsberg.com
			TEL: +47 32287783
			MOB: +47 93057326
			WEB: http://www.kongsberg.com/eng/kog/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expert Users:  People who break other people's computers. 


 


More information about the samba mailing list