Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9355 closed defect (obsolete)

Samba3 authentication issue

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: samba3 Cc:

Description

I'm running the latest trunk on a netgear WNDR3700v2. The install works great and I have a usb drive attached. I've installed the samba3 package but I cannot get it to authenticate users. If I have the security level set to 'share' and allow un-authenticated guest access to shares, I have no problem browsing and uploading files. If I change the security level to 'user', I am unable to mount shares on my mac. The error given is authentication failure. Here is a log of the attempt to mount a share:

[8436] 01:08 change_to_root_user: now uid=(0,0) gid=(0,0)
 [8436] 01:08 Requested protocol [NT LM 0.12]
 [8436] 01:08 set_remote_arch: Client arch is 'CIFSFS'
 [8436] 01:08 lp_file_list_changed()
 [8436] 01:08 claiming  0
 [8436] 01:08 lp_file_list_changed()
 [8436] 01:08 set_remote_arch: Client arch is 'Vista'
 [8436] 01:08 using SPNEGO
 [8436] 01:08 Selected protocol NT LM 0.12
 [8436] 01:08 negprot index=0


[snip]

[8436] 01:08 mod_smbfilepwd_entry: opening file /etc/samba/smbpasswd
 [8436] 01:08 mod_smbfilepwd_entry: entry exists for user myusername
 [8436] 01:08 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [8436] 01:08 check_ntlm_password: sam authentication for user [myusername] FAILED with error NT_STATUS_WRONG_PASSWORD
 [8436] 01:08 check_ntlm_password:  Authentication for user [myusername] -> [myusername] FAILED with error NT_STATUS_WRONG_PASSWORD
 [8436] 01:08 attempting to free (and zero) a user_info structure
 [8436] 01:08 structure was created for myusername
 [8436] 01:08 error packet at smbd/sesssetup.c(99) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE

The funny thing is, if I use smbclient to browse the share I am able to authenticate without issue. Here is what the log looks like when I use smbclient:

[8438] 01:30 Requested protocol [PC NETWORK PROGRAM 1.0]
 [8438] 01:30 Requested protocol [MICROSOFT NETWORKS 1.03]
 [8438] 01:30 Requested protocol [MICROSOFT NETWORKS 3.0]
 [8438] 01:30 Requested protocol [LANMAN1.0]
 [8438] 01:30 Requested protocol [LM1.2X002]
 [8438] 01:30 Requested protocol [DOS LANMAN2.1]
 [8438] 01:30 Requested protocol [LANMAN2.1]
 [8438] 01:30 Requested protocol [Samba]
 [8438] 01:30 set_remote_arch: Client arch is 'Samba'
 [8438] 01:30 lp_file_list_changed()
 [8438] 01:30 claiming  0
 [8438] 01:30 lp_file_list_changed()
 [8438] 01:30 set_remote_arch: Client arch is 'Vista'
 [8438] 01:30 using SPNEGO
 [8438] 01:30 Selected protocol NT LANMAN 1.0
 [8438] 01:30 negprot index=8

[snip]

[8438] 01:30 pdb_update_autolock_flag: Account myusername not autolocked, no check needed
 [8438] 01:30 ntlm_password_check: Checking NT MD4 password
 [8438] 01:30 sam_account_ok: Checking SMB password for user myusername
 [8438] 01:30 logon_hours_ok: user ddelauro allowed to logon at this time (Wed May  4 23:01:30 2011
 [8438] 01:30 make_server_info_sam: made server info for user myusername -> myusername
 [8438] 01:30 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [8438] 01:30 check_ntlm_password: sam authentication for user [myusername] succeeded
 [8438] 01:30 push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [8438] 01:30 push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [8438] 01:30 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [8438] 01:30 pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [8438] 01:30 check_ntlm_password:  PAM Account for user [myusername] succeeded
 [8438] 01:30 check_ntlm_password:  authentication for user [myusername] -> [myusername] -> [myusername] succeeded
 [8438] 01:30 attempting to free (and zero) a user_info structure
 [8438] 01:30 structure was created for myusername

So it appears the only difference is the authentication style chosen at the beginning. Is the arm patch removing this type of authentication?

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

old samba packages have been replaced by samba36

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.