Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with connect to shared folders over Samba addon 10.0.0 #2719

Closed
VasiliyJ opened this issue Oct 23, 2022 · 1 comment
Closed

Problem with connect to shared folders over Samba addon 10.0.0 #2719

VasiliyJ opened this issue Oct 23, 2022 · 1 comment
Labels

Comments

@VasiliyJ
Copy link

Describe the issue you are experiencing

Good day!
I installed addon version 10.0.0.
I configured the user and password, did not change the rest of the parameters.
Addon launches successfully.

After connecting from the computer to \ip address of my HA, I see an invitation to enter a login and password, and in the addon logs I see 4 messages with different ports:
check_ntlm_password: Authentication for user [Vasiliy] -> [Vasiliy] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [.][Vasiliy] at [Sun, 23 Oct 2022 16:29:00.435855 UTC] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [VASILIY-NB] remote host [ipv4: 192.168.17.170:8256] mapped to [.][Vasiliy]. localhost[ipv4:192.168.17.4:445]
{"timestamp": "2022-10-23T16:29:00.436031+0000", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4625, "logonId": "0", "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.17.4:445", "remoteAddress": "ipv4:192.168 .17.170:8256", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": ".", "clientAccount": "Vasiliy", "workstation": "VASILIY-NB", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "Vasiliy", "mappedDomain": ".", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 8039}}

After entering the correct data, an error message pops up that there is no access to this network resource, and in the addon logs I see 3 messages:
check_ntlm_password: authentication for user [smbtest] -> [smbtest] -> [smbtest] succeeded
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"

My OS:
Windows 11 Pro 21H2 22000.1098

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Samba share

What is the version of the add-on?

10.0.0

Steps to reproduce the issue

...

System Health information

System Information

version core-2022.10.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.72
arch x86_64
timezone Europe/Moscow
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.28.2
Stage running
Available Repositories 1121
Downloaded Repositories 5
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.2
update_channel stable
supervisor_version supervisor-2022.10.0
agent_version 1.4.1
docker_version 20.10.17
disk_total 117.4 GB
disk_used 11.1 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons ESPHome (2022.3.0), File editor (5.4.1), MariaDB (2.5.1), Mosquitto broker (6.1.3), Zigbee2MQTT (1.28.0-1), Samba Backup (5.0.0), Ring-MQTT with Video Streaming (5.0.5), Terminal & SSH (9.6.1), Portainer (2.15.1), TileBoard (1.3.7), Samba share (10.0.0)
Dashboards
dashboards 1
resources 0
views 6
mode yaml
Recorder
oldest_recorder_run 18 октября 2022 г., 18:32
current_recorder_run 23 октября 2022 г., 17:59
estimated_db_size 766.67 MiB
database_engine mysql
database_version 10.6.8
Sonoff
version 3.3.1 (b20e33c)
cloud_online 0 / 2
local_online 1 / 1

Anything in the Supervisor logs that might be useful for us?

22-10-23 19:27:56 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/core_samba
22-10-23 19:27:56 INFO (SyncWorker_4) [supervisor.docker.interface] Downloading docker image homeassistant/amd64-addon-samba with tag 10.0.0.
22-10-23 19:28:02 INFO (MainThread) [supervisor.addons] Add-on 'core_samba' successfully installed
22-10-23 19:28:20 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-samba with version 10.0.0
22-10-23 19:28:20 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba

Anything in the add-on logs that might be useful for us?

tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0
Added user smbtest.
cont-init: info: /etc/cont-init.d/samba.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nmbd (no readiness notification)
services-up: info: copying legacy longrun smbd (no readiness notification)
s6-rc: info: service legacy-services successfully started
added interface enp0s3 ip=192.168.17.4 bcast=192.168.17.255 netmask=255.255.255.0
nmbd version 4.15.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2021
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Registered MSG_REQ_POOL_USAGE
added interface enp0s3 ip=192.168.17.4 bcast=192.168.17.255 netmask=255.255.255.0
making subnet name:192.168.17.4 Broadcast address:192.168.17.255 Subnet mask:255.255.255.0
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
added interface enp0s3 ip=192.168.17.4 bcast=192.168.17.255 netmask=255.255.255.0
smbd version 4.15.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2021
uid=0 gid=0 euid=0 egid=0
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
added interface enp0s3 ip=192.168.17.4 bcast=192.168.17.255 netmask=255.255.255.0
INFO: Profiling support unavailable in this build.
Registered MSG_REQ_POOL_USAGE
No builtin backend found, trying to load plugin
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_POOL_USAGE
waiting for connections
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.17.4
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.17.4
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.17.4
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.17.4
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  Authentication for user [Vasiliy] -> [Vasiliy] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [.]\[Vasiliy] at [Sun, 23 Oct 2022 16:47:46.741610 UTC] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [VASILIY-NB] remote host [ipv4:192.168.17.170:9836] mapped to [.]\[Vasiliy]. local host [ipv4:192.168.17.4:445] 
{"timestamp": "2022-10-23T16:47:46.741736+0000", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4625, "logonId": "0", "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.17.4:445", "remoteAddress": "ipv4:192.168.17.170:9836", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": ".", "clientAccount": "Vasiliy", "workstation": "VASILIY-NB", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "Vasiliy", "mappedDomain": ".", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 2891}}
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  Authentication for user [Vasiliy] -> [Vasiliy] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [.]\[Vasiliy] at [Sun, 23 Oct 2022 16:47:46.756750 UTC] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [VASILIY-NB] remote host [ipv4:192.168.17.170:9837] mapped to [.]\[Vasiliy]. local host [ipv4:192.168.17.4:445] 
{"timestamp": "2022-10-23T16:47:46.756934+0000", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4625, "logonId": "0", "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.17.4:445", "remoteAddress": "ipv4:192.168.17.170:9837", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": ".", "clientAccount": "Vasiliy", "workstation": "VASILIY-NB", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "Vasiliy", "mappedDomain": ".", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 3847}}
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.17.4
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.17.4
run_elections: >>> Won election for workgroup WORKGROUP on subnet 192.168.17.4 <<<
become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 192.168.17.4
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  authentication for user [smbtest] -> [smbtest] -> [smbtest] succeeded
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  authentication for user [smbtest] -> [smbtest] -> [smbtest] succeeded
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  authentication for user [smbtest] -> [smbtest] -> [smbtest] succeeded
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
Registered MSG_REQ_POOL_USAGE
check_ntlm_password:  authentication for user [smbtest] -> [smbtest] -> [smbtest] succeeded
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[media]"
*****
Samba name server HA is now a local master browser for workgroup WORKGROUP on subnet 192.168.17.4
*****

Additional information

No response

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 22, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant