lightdm user detected, wont change hostname
-
We use FOG to deploy linux machines. After the image has been deployed, the FOG Service needs to change the hostname.
This works perfectly fine on windows, on linux the lightdm user gets detected:------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 04.10.2024 13:17:29 Client-Info Client Version: 0.13.0 04.10.2024 13:17:29 Client-Info Client OS: Linux 04.10.2024 13:17:29 Client-Info Server Version: 1.5.10 04.10.2024 13:17:29 Middleware::Response Success 04.10.2024 13:17:29 Middleware::Communication URL: https://fog.lan/fog/service/usertracking.report.php?action=login&user=tcimagehost\lightdm&mac=<MAC>&newService&json
this causes the hostname changer module to not change the hostname:
------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 04.10.2024 13:15:54 Client-Info Client Version: 0.13.0 04.10.2024 13:15:54 Client-Info Client OS: Linux 04.10.2024 13:15:54 Client-Info Server Version: 1.5.10 04.10.2024 13:15:54 Middleware::Response Success 04.10.2024 13:15:54 HostnameChanger Users still logged in and enforce is disabled, delaying any further actions ------------------------------------------------------------------------------
In “FOG Configuration -> FOG Settings -> Active Directory Defaults” the checkmark is set by “ENFORCE HOST CHANGES”.
In “FOG Configuration -> FOG Settings -> FOG Client - Task Reboot” the checkmarks are set by “Client Taskreboot enabled” and “Task Force Reboot”.
Going to “Hosts -> <Host> -> Active Directory” and enabling “Name Change/AD Join Forced reboot?” fixes the issue, but I don’t know how to force this for all hosts by default, especially including new hosts.
FOG Version 1.5.10
FOG Client Version 0.13.0 -
@pilipp_edv FOG Configuration Page -> FOG Settings -> FOG_ENFORCE_HOST_CHANGES will set this globally, though for existing hosts it may need to be enabled as well.
If this is okay for all hosts, just create a group -> add all hosts to the group -> then set up things in the same way from the group to enable this setting for all hosts that already exist.
-
@Tom-Elliott thanks for the reply, but there is no “FOG_ENFORCE_HOST_CHANGES” in FOG Configuration -> FOG Settings, only “ENFORCE HOST CHANGES” under FOG Configuration -> FOG Settings -> Active Directory Defaults and that one is already ticked.
Either that or I’m just blind. -
@pilipp_edv That’s the same thing.
In the DB the actual name is FOG_ENFORCE_HOST_CHANGES, and for 1.5.x we tried to do some fancy things by replacing
_
withFOG