The problem
I have created a bash script to authenticate against (planning to use LDAP, but right now it's an empty script). I find that when I authenticate against it, I get logged in, however HA does not seem to recognize my user name. See screenshots attached where it would expect it to show my name/uploaded picture.
Authentication against HA's password works correctly.
(first screenshot after login against command line auth, second one after local login)


What version of Home Assistant Core has the issue?
System Information version | core-2023.9.1 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.11.5 os_name | Linux os_version | 6.1.21-v8 arch | aarch64 timezone | Europe/Luxembourg config_dir | /config Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.32.1 Stage | running Available Repositories | 1283 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 10.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.08.3 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 916.9 GB disk_used | 37.5 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.7.1), Mosquitto broker (6.2.1), Zigbee2MQTT (1.32.2-1), File editor (5.6.0), ESPHome (2023.7.1), Frigate (0.12.1), Telegraf (1.0.0), UniFi Network Application (2.7.0), Piper (1.2.0), Whisper (1.0.0) Dashboards
dashboards | 1 -- | -- resources | 1 views | 11 mode | storage Recorder
oldest_recorder_run | September 5, 2023 at 19:15 -- | -- current_recorder_run | September 10, 2023 at 17:51 estimated_db_size | 989.27 MiB database_engine | sqlite database_version | 3.41.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
authentication providers
Link to integration documentation on our website
https://www.home-assistant.io/docs/authentication/providers/
Diagnostics information
No response
Example YAML snippet
Relevant entry from configuration.yaml:
auth_providers:
- type: command_line
command: /config/ldap-auth.sh
- type: homeassistant
contents of ldap-auth.sh:
#!/bin/sh
exit 0
Anything in the logs that might be useful for us?
nothing found relevant to authentication
Additional information
No response
The problem
I have created a bash script to authenticate against (planning to use LDAP, but right now it's an empty script). I find that when I authenticate against it, I get logged in, however HA does not seem to recognize my user name. See screenshots attached where it would expect it to show my name/uploaded picture.
Authentication against HA's password works correctly.
(first screenshot after login against command line auth, second one after local login)
What version of Home Assistant Core has the issue?
System Information version | core-2023.9.1 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.11.5 os_name | Linux os_version | 6.1.21-v8 arch | aarch64 timezone | Europe/Luxembourg config_dir | /config
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.32.1 Stage | running Available Repositories | 1283 Downloaded Repositories | 5Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 10.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.08.3 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 916.9 GB disk_used | 37.5 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.7.1), Mosquitto broker (6.2.1), Zigbee2MQTT (1.32.2-1), File editor (5.6.0), ESPHome (2023.7.1), Frigate (0.12.1), Telegraf (1.0.0), UniFi Network Application (2.7.0), Piper (1.2.0), Whisper (1.0.0)Dashboards
dashboards | 1 -- | -- resources | 1 views | 11 mode | storageRecorder
oldest_recorder_run | September 5, 2023 at 19:15 -- | -- current_recorder_run | September 10, 2023 at 17:51 estimated_db_size | 989.27 MiB database_engine | sqlite database_version | 3.41.2What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
authentication providers
Link to integration documentation on our website
https://www.home-assistant.io/docs/authentication/providers/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response