HIMMELBLAU.CONF(5)
๐ HIMMELBLAU.CONF(5) โ File Formats โจ
okay so bestie, welcome to himmelblau.conf(5) โ the file formats page for the config file that makes Azure Entra ID authentication happen on Linux. grab a strawberry drink ๐ and let's get into it.
๐ธ NAME
himmelblau.conf โ the configuration file for Himmelblau, the thing that enables Azure Entra ID authentication on Linux. literally its whole personality. ๐
๐ฆ SYNOPSIS
/etc/himmelblau/himmelblau.conf
that's it. that's the path. iconic.
โจ HOW CONFIGURATION CHANGES ARE APPLIED
okay so this is important and a lot of people get got by it ๐ญ โ changes to the config file /etc/himmelblau/himmelblau.conf only take effect after restarting the Himmelblau daemons. and yes, that means both of them: the himmelblaud daemon (which handles authentication) and the himmelblaud-tasks daemon (which processes related tasks).
๐ Restarting the Daemons
to actually apply your changes, restart the Himmelblau services with these systemd commands:
sudo systemctl restart himmelblaud
sudo systemctl restart himmelblaud-tasks
ngl bestie, if you edit the file and nothing happens โ this is why. restart the daemons. every time. ๐
๐ DESCRIPTION
the himmelblau.conf file is the primary configuration file for the Himmelblau authentication module. it defines the global and optional settings that are required for Azure Entra ID-based authentication and device management. main character file fr fr. ๐
๐ FILE FORMAT
the file is made of sections, each one headed by a name wrapped in square brackets. each section contains parameters and their values, in this format:
parameter = value
and lines that begin with a # are comments โ the parser just ignores them, no cap. ๐
๐ PARAMETERS
๐ [global]
this section holds the settings that apply globally to, like, all operations of Himmelblau. the big ones. โจ
domainโ the primary Azure Entra ID domain name used for authentication. this value SHOULD match the domain name that users actually type in when signing in (for example, the domain portion of their UPN).
in most cases this is gonna be the primary domain of your Azure Entra ID tenant. if your org uses multiple verified domains or aliases, pick the one your users actually sign in with, bestie. ๐ซถ
this parameter is REQUIRED for successful authentication. and like, for real โ if it's not specified, no users will be permitted to authenticate. at all. zero. ๐
domain = example.com
debugโ a boolean option that turns on debug-level logging. when it's set totrue, debug messages get output to the system journal. very "let me see what's going on" of it. ๐ฅ
debug = true
pam_allow_groupsโ a comma-separated list of Entra Id Users and Groups that are permitted to access the system. Users should be specified by UPN. Groups MUST be specified using their Object ID GUID. group names may not be used, because those names are not guaranteed to be unique in Entra Id. ๐ซ
this restriction is enforced during PAM account management: a user who isn't permitted causes pam_himmelblau to return PAM_AUTH_ERR from its account phase. and here's the tea โ โ a PAM stack that discards that result (like, for example, an account line whose control maps every non-success return to ignore) will silently admit users that the allow list is meant to reject, because a later module such as pam_unix then succeeds for any resolvable user. so when you're composing an account stack by hand, make sure the denial is terminal. ๐
pam_allow_groups = f3c9a7e4-7d5a-47e8-832f-3d2d92abcd12,5ba4ef1d-e454-4f43-ba7c-6fe6f1601915,admin@himmelblau-idm.org
id_attr_mapโ specify whether to map uid/gid based on the object name, the object uuid, or based on the rfc2307 schema extension attributes synchronized from an on-prem Active Directory instance. mapping by name or by rfc2307 is recommended. mapping by name is the default. ๐
id_attr_map = <name|uuid|rfc2307>
rfc2307_group_fallback_mapโ specify whether to map group IDs (GIDs) based on the object name or object UUID when there's nogidNumberattribute found in an on-prem Active Directory instance synchronized to Azure Entra ID. this option is only applicable ifid_attr_mapis set torfc2307. so ifid_attr_map = rfc2307and a group doesn't have agidNumberdefined in the directory, this setting determines the fallback method for mapping the group ID. and if this option isn't set at all? groups without agidNumberwill not be available to NSS. ๐ญ
rfc2307_group_fallback_map = <name|uuid>
enable_helloโ enables or disables user enrollment in Windows Hello authentication. if it's disabled, users will need to provide MFA for each login. every single one. ๐ฎโ๐จ
enable_hello = false
hello_pin_min_lengthโ the minimum length of the PIN for Windows Hello authentication. the value must be between6and32characters. no three-digit PINs bestie, we're better than that. ๐
hello_pin_min_length = 8
hello_pin_retry_countโ the number of invalid Hello PIN attempts allowed before the user is required to perform MFA. after successful MFA, the user will be prompted to set a new PIN. the value must be a non-negative integer. โญ
hello_pin_retry_count = 3
hello_pin_promptโ customizes the prompt text shown when requesting the user's Linux Hello PIN. if it's not set, the default prompt is:
Use the Linux Hello PIN for this device.
hello_pin_prompt = Enter your device unlock PIN
entra_id_password_promptโ customizes the prompt text shown when requesting the user's Entra ID password. if it's not set, the default prompt is:
Use the password for your Office 365 or Microsoft online login.
entra_id_password_prompt = Enter your Microsoft 365 password
enable_sfa_fallbackโ determines whether password-only (single-factor) authentication is permitted when MFA is unavailable. disabled by default. ๐จ
enable_sfa_fallback = true
cn_name_mappingโ allows users to enter the short form of their username (e.g.,'dave') instead of the full UPN. so convenient honestly. ๐
cn_name_mapping = true
local_groupsโ a comma-separated list of local groups that every Entra ID user should be a member of. for example, maybe you want all Entra ID users to be a member of thesudogroup. WARNING: this setting will not REMOVE group member entries when groups are removed from this list. you must remove them manually. the way this setting only adds and never takes awayโฆ ๐
local_groups = sudo,admin
sudo_groupsโ a comma-separated list of Azure Entra ID group object IDs whose members should be grantedsudoaccess on this system. iflocal_sudo_groupis not defined, the local groupsudowill be used. ๐
sudo_groups = f3c9a7e4-7d5a-47e8-832f-3d2d92abcd12,5ba4ef1d-e454-4f43-ba7c-6fe6f1601915
local_sudo_groupโ the local group that should be given to users in any of the groups specified insudo_groups. it only has an effect ifsudo_groupsis set. it removes the group from the user if they are no longer a member of the specified entra group. she cleans up after herself, we love to see it. ๐งlogon_scriptโ a script that executes every time a user logs on. two environment variables get set:USERNAMEandACCESS_TOKEN. theACCESS_TOKENenvironment variable is an access token for the MS Graph. the token scope config option sets the comma-separated scopes that should be requested for theACCESS_TOKEN.ACCESS_TOKENwill be empty during offline logon. the return code of the script determines how authentication proceeds:0is success,1is a soft failure and authentication will proceed, while2is a hard failure causing authentication to fail. so like, choose your return codes wisely. ๐
logon_script = /etc/himmelblau/logon.sh
logon_token_scopesโ a comma-separated list of the scopes to be requested for theACCESS_TOKENduring logon. these scopes MUST correspond to the API permissions assigned to the Entra Id Application specified by theapp_idoption. ๐
logon_token_scopes = user.read,mail.read
app_idโ specifies the Azure Entra ID application (client) ID used by Himmelblau for directory operations such as reading extended attributes (for example, thegidNumberattribute used in RFC 2307 idmapping).
if logon_token_app_id is not set, this application ID is also used when requesting access tokens for the user logon script.
Note: in the Azure Portal, for the application corresponding to app_id, make sure that the redirect URI himmelblau://Himmelblau.EntraId.BrokerPlugin is enabled under "Mobile and desktop applications" in the Authentication section. this allows Himmelblau to correctly handle interactive token redirection. don't skip this step bestie, it's giving "required". ๐ฏ
app_id = d023f7aa-d214-4b59-911d-6074de623765
logon_token_app_idโ specifies an alternate Azure Entra ID application (client) ID to be used exclusively for acquiringACCESS_TOKENvalues on behalf of the user during logon script execution. if it's not set, the value ofapp_idwill be used instead. ๐
this option lets you use a separate application registration that carries the specific API permissions required by logon scripts.
Note: in the Azure Portal, for the application corresponding to logon_token_app_id, make sure that the redirect URI https://login.microsoftonline.com/common/oauth2/nativeclient is enabled under "Mobile and desktop applications" in the Authentication section. this is required for Himmelblau to obtain tokens via the public client flow. โญ
logon_token_app_id = 544e695f-5d78-442e-b14e-e114e95e640c
enable_experimental_mfaโ a boolean option that enables the experimental multi-factor authentication (MFA) flow, which permits Hello authentication. this experimental flow may encounter failures in certain edge cases. if it's disabled, the system enforces the Device Authorization Grant (DAG) flow for MFA, which is more robust but does not support Hello authentication. by default, this option is enabled. ๐งชโจ
enable_experimental_mfa = true
enable_experimental_passwordless_fidoโ a boolean option that enables the experimental passwordless FIDO flow for Azure Entra ID authentication. when enabled, Himmelblau will attempt to authenticate with Entra ID using a FIDO2 security key without requiring a password. by default, this option is disabled. ๐๐ฆ
enable_experimental_passwordless_fido = true
name_mapping_scriptโ specifies the path to an executable script used for mapping custom names to UPN names. the script MUST accept a single argument, which will always be a mapped name. the script MUST print the corresponding UPN (User Principal Name) to stdout. if the script doesn't recognize the input name, it MUST simply return the input name unchanged. this option is particularly useful in environments where direct UPN-to-CN mappings are impractical or where custom transformations are required. ๐งโโ๏ธ
the script must handle the input gracefully and return the correct UPN โ or the input name if it's unrecognized. errors must be handled, to avoid authentication failures.
name_mapping_script = /path/to/mapping_script.sh
Example Script:
#!/bin/bash
# Convert CN to UPN, or return the input name if unrecognized
if [[ "$1" =~ ^[a-zA-Z0-9._-]+$ ]]; then
echo "$1@example.com"
else
echo "$1"
fi
apply_policyโ a boolean option that enables the application and enforcement of Intune policies to the authenticated user. ๐
by default, this option is disabled.
apply_policy = false
authority_hostโ specifies the hostname for Microsoft authentication. the default value islogin.microsoftonline.com. ๐
authority_host = login.microsoftonline.com
okay that's the [global] section handled bestie, but don't go anywhere โ there's more coming ๐
db_pathโ where the cache database lives, bestie. This file stores cached auth data and device state, so likeโฆ it matters.
db_path = /var/cache/himmelblau/himmelblau.cache.db
hsm_typeโ how Himmelblau handles secure key storage. It decides whether you get a TPM-bound software HSM, an actual TPM, or the hybrid thing. The options are:tpm_bound_soft_if_possibleโ software-based HSM that encrypts key material locally on the system, but binds the parent AuthCode to the TPM if available. ๐ซถtpmโ hardware TPM only, exclusively, for storing and binding cryptographic keys. No fallback, no plan B.tpm_if_possibleโ try the hardware TPM if it's there; if not, fall back to the software HSM. Important: if the TPM has previously been used for key storage, the system will not fall back to the software HSM.
Default is tpm_bound_soft_if_possible.
Heads up: the oldsoftoption is deprecated. Environments currently enrolled usingsoftget automatically migrated totpm_bound_soft_if_possible, so nobody's left hanging ๐
Want to validate whether Himmelblau is actually using the hardware TPM? Run sudo aad-tool tpm for a status report. Iconic.
hsm_type = tpm_bound_soft_if_possible
tpm_tcti_nameโ the TCTI (Trusted Computing Technology Interface) to use when talking to a TPM for secure key ops. Only relevant whenhsm_typeistpmortpm_if_possible, iykyk.
Common values:
device:/dev/tpmrm0โ uses the kernel TPM resource manager device, which is the recommended default for most Linux systems โจ
Other TCTI strings may be needed depending on your system's TPM driver or config. This option gives you advanced control over how Himmelblau connects to the TPM for crypto operations.
tpm_tcti_name = device:/dev/tpmrm0
hsm_pin_pathโ where the HSM (Hardware Security Module) PIN is stored. That PIN protects sensitive cryptographic operations, so likeโฆ treat it with respect ๐
hsm_pin_path = /var/lib/himmelblaud/hsm-pin
socket_pathโ path to the socket file thepamandnssmodules use to talk to the Himmelblau daemon.
socket_path = /var/run/himmelblaud/socket
task_socket_pathโ path to the socket file for communication with the task daemon.
task_socket_path = /var/run/himmelblaud/task_sock
broker_socket_pathโ path to the socket file for communication with the broker DBus service.
broker_socket_path = /var/run/himmelblaud/broker_sock
home_prefixโ the prefix used for user home directories.
home_prefix = /home/
home_attrโ the attribute used to create a home directory for a user. Options are:UUID(default)SPNCN
home_attr = UUID
home_aliasโ the symlinked alias for the user's home directory. Options are:UUIDSPN(default)CN
home_alias = SPN
shellโ the default shell for users. Assigned when the user logs in.
shell = /bin/bash
idmap_rangeโ the range of IDs used for user and group mappings.
๐จ When this option is modified, you SHOULD run:sudo aad-tool cache-clear --fullThat clears out old cached ID mappings so you don't get potential UID overlaps from stale cache data. Afterwards, restarthimmelblaud.
idmap_range = 5000000-5999999
connection_timeoutโ timeout for connections to the authentication server. Default is 2 seconds.
connection_timeout = 5
cache_timeoutโ timeout for caching authentication data. Default is 300 seconds (5 minutes).
cache_timeout = 10
use_etc_skelโ iftrue, Himmelblau uses the contents of/etc/skelwhen creating new user directories.
use_etc_skel = false
selinuxโ whether SELinux security labels get applied to users' home directories. Set totrueto enable.
selinux = true
join_typeโ whether the system should join or register with Microsoft Entra ID.
join_type = register
user_map_fileโ path to a user-mapping file that maps local user accounts to Azure Entra ID user accounts so they can authenticate with Entra ID credentials. Each line must contain a single mapping entry in this format:
local_username:name@domain
Blank lines and lines beginning with # are ignored. If this option isn't set, the default path /etc/himmelblau/user-map is used.
user_map_file = /path/to/user_map
# Example user-map file entries:
# local_username:samaccountname@domain
alice:alice@contoso.com
bob:bob.smith@example.org
svcuser:service.account@tenant.local
๐ OFFLINE BREAKGLASS CONFIGURATION
The [offline_breakglass] section configures Himmelblau's emergency offline authentication mechanism, used when Azure Entra ID is unreachable ๐ญ
Offline breakglass lets Entra ID users who normally require multi-factor authentication (MFA) authenticate with their cached password when the host is offline. It's a controlled fallback for MFA-only users who would otherwise be completely locked out during an outage.
Single-factor authentication (SFA-only) users and Hello-PIN users already have offline sign-in capability and are unaffected by this setting. This option exists solely to extend limited offline access to MFA-enabled users when network connectivity to Entra ID can't be established.
๐ง [offline_breakglass]
This section controls whether and how Himmelblau may perform offline password authentication for MFA-enabled users in emergency conditions.
enabled
Boolean specifying whether offline breakglass mode is permitted.
When true, Himmelblau caches secure, salted password verifiers for MFA-enabled Entra ID users who successfully authenticate online. Those verifiers can then authenticate the same users when Entra ID is unreachable โ so MFA users can log in with their cached password โจ
If false (the default), Himmelblau keeps caching password verifiers only for SFA-only users, and MFA-enabled users won't be able to authenticate when offline. The aad-tool(1) command aad-tool offline-breakglass will also have no effect.
โฐ Admins must enable this well in advance of an outage โ password verifiers for MFA users are only stored following a successful online authentication. It's too late to enable this once Entra ID is already unreachable. No cap.
๐ Enabling offline breakglass carries significant risk. If a device is stolen or compromised and network access to Entra ID is blocked, attackers could effectively disable MFA protection by forcing the system into a simple password-only (SFA) auth state. Only enable this after careful consideration of your org's security posture and offline access requirements.
Also: this feature does not apply to passwordless accounts. If an MFA user signs in with a passwordless method, no password hash exists to cache, and offline breakglass can't function for that user. Periodt.
[offline_breakglass]
enabled = true
ttl = 2h
# Allow MFA users to authenticate offline for up to 2 hours
ttl
How long breakglass mode stays active once triggered. The value may include a suffix for the unit: m for minutes, h for hours, or d for days. No suffix? Then it's interpreted as seconds. After that period, offline breakglass mode automatically expires and normal authentication resumes ๐ธ
[offline_breakglass]
enabled = true
ttl = 1d
# Permit offline MFA logins for up to 24 hours after activation
๐ฆ SEE ALSO
himmelblaud(8), himmelblaud-tasks(8)
okay that's the whole page bestie, you ate that ๐
and for the record, this masterpiece is the Himmelblau Configuration man page, dated November 2024, and it's HIMMELBLAU.CONF(5) โ go forth and configure responsibly ๐โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: himmelblau 2.3.14+git0.e23b4c54-160000.1.2 ยท GPL-3.0-or-later
- opensuse-leap 16.0: himmelblau 2.3.14+git0.e23b4c54-160000.1.2 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms