Open llamafilm opened 1 year ago
Regarding the 10-second delay, have you entered the wrong password more than 10 times? In order to avoid dictionary attacks, ksmbd give a delay for 5 seconds if the password is wrong 10 times in a row.
kernel: [ 2305.719025] ksmbd: authentication failed
"authentication failed" message is coming when an incorrect password from client is sent to ksmbd. Have you ever changed the password for testuser? If you create testuser2 and login from windows, Let me know if you still get same issue.
I'm sure I was using the right password because it worked fine from linux and Mac clients. Today this is working again. There is still a long delay before asking for password, and another delay after I enter the password. Is there a way to reset the 5 second delay period?
Is there a way to reset the 5 second delay period?
Can you send packet dump file captured on problem situation ?
Today the behavior is different. Now mounting with net use
works right away. But mounting via Windows Explorer still takes a long time, over 1 minute. Here's a pcap of the mounting with Explorer.
Also, today smbclient running on the server fails with this error:
$ smbclient -L //10.49.54.93 -U tester3
Password for [WORKGROUP\tester3]:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
I'm also attaching a pcap of that using loopback interface. In both cases I see a lot of STATUS_BAD_NETWORK_NAME
about the IPC$ share.
pcaps.zip
When I try to login from Windows 10 client, it takes a long time (10 seconds) before asking for the password, and then after I enter the password it takes another 10 seconds before saying it's wrong.
I can mount it successfully from linux using the same credentials with
smbclient
.Here's the debug log during one attempted login:
I'm using version 3.4.5 and I created the user with
ksmbd.adduser -a tester
.