What's new

Unable to login to Samba from Oppo 103 bluray player

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Buontinh

Occasional Visitor
Hi all,

Running Merlin 384.19 on ASUS RT-AC86U and 380.70 on RT-N66R. I have no problem accessing the server using Windows, but with the Oppo 103, it keep rejecting the login. I still get the login prompt and it fails to login even when setting the server to allow guest login. Google search shows that this is a common problem with Merlin and Oppo player, including the Oppo 203.

Is there a workaround for this? I have tried changing protocol version and enabled force as master browser, but same thing. I'll try flashing the N66R with Asus original firmware and see if it works as one of the thread I found said it works with Asus firmware.

Thanks for any suggestions.
 
Last edited:
I upgraded the RT-N66R to the latest ASUS firmware 382.52272 and now can access it through the Oppo.
But what is weird is if I enabled allow guest login, I still get the username/password prompt from the Oppo and it does not work which is fine with me.
So I'm wondering what changes Merlin made to the Samba codes for his version that makes it not work?
 
Are you talking about the changes in the positively ancient 380.70 code? I would assume it is simply out of date as other standards and drivers have moved on since that time.
 
What I was trying to say is why does Merlin firmware handle Samba differently than Asus. Both the latest version 384.19 for the AC86U and 380.70 for the N66R are Merlin and they don't work with the Oppo.
 
Yes, I tried all three combos.

This thread here shows that this is an ongoing issue since many years ago.
 
Ah, I didn't realize that. I have a bunch of Oppo players but use Windows shares on drives on an old mini pc. Router is an AC86U with Merlin with SMB on so it can be set as the master browser. Not having to login to the router with the Oppo I didn't realize there was that problem.
 
Have you checked the logs on the router?

cat /var/log/log.smbd
cat /var/log/log.nmbd


I suspect the two systems can't agree on the authentication protocol....
 
redsandvb:
I have been using Windows for SMB too, but on an old full tower power hungry core2quad pc. Now I'm trying to use the router as it's a lot more power efficience. If I can't get it to work with the AC86U running Merlin, I will probably dedicate the RT-N66R running Asus firmware for SMB and DLNA as it seems fast enough. But the problem with ASUS firmware at least for the N66R is it treats multiple USB devices as one instead of separately like on the AC86U with Merlin.

john9527:
I started up Samba on the router again this morning then tried login in from the Oppo again. After that sshed into the router then checked those log files, but they didn't mention anything about failed logins. Do I need to change the default message log level to something else?

Thanks

admin@RT-AC86U-E9F0:/tmp/home/root# cat /var/log/log.smbd
[2020/08/23 14:49:58, 0] smbd/server.c:1074(smbd_main)
smbd version 3.6.25 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
========================================================================================

admin@RT-AC86U-E9F0:/tmp/home/root# cat /var/log/log.nmbd
[2020/08/23 14:49:58, 0] nmbd/nmbd.c:861(nmbd_main)
nmbd version 3.6.25 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2020/08/23 14:51:57, 0] nmbd/nmbd.c:66(terminate)
Got SIGTERM: going down...
[2020/08/24 07:41:59, 0] nmbd/nmbd.c:861(nmbd_main)
nmbd version 3.6.25 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2020/08/24 07:43:09, 0] nmbd/nmbd.c:66(terminate)
Got SIGTERM: going down...
[2020/08/24 07:43:09, 0] nmbd/nmbd.c:861(nmbd_main)
nmbd version 3.6.25 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2020/08/24 07:43:09, 0] nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup HOMEGROUP on subnet 192.168.1.1
[2020/08/24 07:43:09, 0] nmbd/nmbd_become_dmb.c:307(become_domain_master_browser_bcast)
become_domain_master_browser_bcast: querying subnet 192.168.1.1 for domain master browser on workgroup HOMEGROUP
[2020/08/24 07:43:17, 0] nmbd/nmbd_become_dmb.c:112(become_domain_master_stage2)
*****

Samba server RT-AC86U-E9F0 is now a domain master browser for workgroup HOMEGROUP on subnet 192.168.1.1

*****
[2020/08/24 07:43:32, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****

Samba name server RT-AC86U-E9F0 is now a local master browser for workgroup HOMEGROUP on subnet 192.168.1.1
 
Last edited:
You need to change the Samba log level. I believe the default is 0, but you would need to set it to 2 (or higher).

Look in /var/log/samba.log
 
Last edited:
Not sure if I did it correctly or not, but logs still look pretty much the same after changing log level to 2 then reboot. Should the options under System Log tab in the GUI be set to something else?

nvram set log_level=2
nvram commit
 
That's the syslog level (change it back to what it was) not the Samba log level.

You have to change it in the smb.conf file. Probably the easiest way to do that is with a custom script. For example,

/jffs/scripts/smb.postconf
Code:
#!/bin/sh

CONFIG=$1
source /usr/sbin/helper.sh

pc_replace "log level = 0" "log level = 2" $CONFIG

Then apply the change,
Code:
service restart_nasapps
 
samba.log finally show something after creating smb.postconf
Also should I post log files as an attachment or text like below?

Thanks

admin@RT-AC86U-E9F0:/tmp/home/root# cat /var/log/samba.log
[2020/08/24 12:56:02.936372, 2] param/loadparm.c:5026(max_open_files)
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
[2020/08/24 12:56:02.936639, 1] param/loadparm.c:8044(lp_do_parameter)
WARNING: The "null passwords" option is deprecated
[2020/08/24 12:56:02.936730, 1] param/loadparm.c:8044(lp_do_parameter)
WARNING: The "use spnego" option is deprecated
[2020/08/24 12:56:02.937301, 2] param/loadparm.c:8379(do_section)
Processing section "[logs (at 4_1GB)]"
[2020/08/24 12:56:02.952045, 2] lib/interface.c:402(interpret_interface)
interpret_interface: can't determine interface for lo
[2020/08/24 12:56:02.959122, 2] lib/interface.c:402(interpret_interface)
interpret_interface: can't determine interface for br0
[2020/08/24 12:56:02.959356, 2] lib/interface.c:479(interpret_interface)
interpret_interface: Adding interface 192.168.1.1/255.255.255.0
[2020/08/24 12:56:02.959398, 2] lib/interface.c:341(add_interface)
added interface 192.168.1.1/255 ip=192.168.1.1 bcast=192.168.1.255 netmask=255 .255.255.0
[2020/08/24 12:56:03.054505, 2] ../lib/util/util_file.c:227(map_file)
Failed to load /usr/share/samba/codepages/upcase.dat - No such file or directo ry
[2020/08/24 12:56:03.054642, 2] ../lib/util/util_file.c:227(map_file)
Failed to load /usr/share/samba/codepages/lowcase.dat - No such file or direct ory
[2020/08/24 12:56:03.054685, 1] ../lib/util/charset/codepoints.c:60(load_case_t ables_library)
Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
[2020/08/24 12:56:03.054718, 1] ../lib/util/charset/codepoints.c:64(load_case_t ables_library)
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
[2020/08/24 12:56:03.243166, 2] smbd/server.c:863(smbd_parent_loop)
waiting for connections
[2020/08/24 12:57:49.516027, 2] auth/auth.c:309(check_ntlm_password)
check_ntlm_password: authentication for user [admin] -> [admin] -> [admin] su cceeded
 
Last edited:
samba.log finally show something after creating smb.postconf
Also should I post log files as an attachment or text like below?
If the log is relatively small post the text inside a CODE block, otherwise take a copy of the file and attach it (this also prevents word wrapping issues when copying from a terminal session).
Code:
[2020/08/24 17:43:54.985804,  2] auth/auth.c:309(check_ntlm_password)
  check_ntlm_password:  authentication for user [Colin] -> [Colin] -> [Colin] succeeded
[2020/08/24 17:43:54.996186,  1] smbd/service.c:1114(make_connection_snum)
  zen (192.168.1.49) connect to service ASUS initially as user Colin (uid=501, gid=501) (pid 10625)
[2020/08/24 17:43:54.998405,  2] smbd/open.c:753(open_file)
  Colin opened file Wi-Fi/wl_AC68U_V45D5.txt read=No write=No (numopen=1)
[2020/08/24 17:43:55.000210,  2] smbd/close.c:699(close_normal_file)
  Colin closed file Wi-Fi/wl_AC68U_V45D5.txt (numopen=0) NT code 0x00000000
 
I cleaned up samba.log then tried login from the Oppo again so this log file is pretty fresh.

Please take a look and see if anything looks out of the ordinary.

Thanks.
 

Attachments

  • samba.log.txt
    2.4 KB · Views: 118
I do not think it shows anything useful. Log file shows login was successful, but Oppo still give login error. Maybe I should try change the log level to 3?
 
I was about to suggest the same. The log just shows dell-m4800 successfully connecting to the share.
 
Changed log level to 3 and it now shows a lot more info.

Thanks
 

Attachments

  • samba.log.txt
    13.9 KB · Views: 155
Well I can see that the problem is that it is failing to create the RPC pipe, but I don't know why that is.
Code:
  Transaction 4 of length 104 (0 toread)
[2020/08/24 17:57:49.665966,  3] smbd/process.c:1414(switch_message)
  switch message SMBntcreateX (pid 31692) conn 0xd316b8
[2020/08/24 17:57:49.666179,  3] lib/module.c:48(do_smb_load_module)
  Error loading module '/etc/rpc/lsarpc.so': /etc/rpc/lsarpc.so: cannot open shared object file: No such file or directory
[2020/08/24 17:57:49.666221,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/nttrans.c(297) cmd=162 (SMBntcreateX) NT code 0xc0000034
[2020/08/24 17:57:49.667557,  3] smbd/process.c:1609(process_smb)

If you post the contents of your /etc/smb.conf file I can compare it to mine.
 
Last edited:
I have attached smb.conf below.

Thank you for all your help so far.
 

Attachments

  • smb.conf.txt
    1.4 KB · Views: 116

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top