You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the authentication provider configuration for "command line" is set to "meta: true", then when the script is called, the user account is not filled in with additional data such as "group" and "local_only", but the name is filled in correctly. No errors were found in the logs. The values are printed in stdout one after another like this:
name = Alexander Borisov
group = system-admin
local_only = true
What version of Home Assistant Core has the issue?
2024.11.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
core
Link to integration documentation on our website
No response
Diagnostics information
./ldap-auth.sh
name = Alexander Borisov
group = system-admin
local_only = true
A piece of script responsible for printing to stdout:
on_auth_success() {
# Print the meta entries for use in HA
[[ ! -z "$DISPLAY_NAME" ]] && echo "name = $DISPLAY_NAME"
if [[ "$IS_ADMIN" = true ]]; then
echo "group = system-admin"
else
echo "group = system-users"
fi
if [[ "$IS_LOCAL" = true ]]; then
echo "local_only = true"
else
echo "local_only = false"
fi
}
The problem
If the authentication provider configuration for "command line" is set to "meta: true", then when the script is called, the user account is not filled in with additional data such as "group" and "local_only", but the name is filled in correctly. No errors were found in the logs. The values are printed in stdout one after another like this:
What version of Home Assistant Core has the issue?
2024.11.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
core
Link to integration documentation on our website
No response
Diagnostics information
A piece of script responsible for printing to stdout:
Example YAML snippet
The text was updated successfully, but these errors were encountered: