Skip to content

Send all four firmware fields with a registration (fogproject #198) - #171

Merged
mastacontrola merged 1 commit into
masterfrom
feat/198-registration-sends-firmware-fields
Sep 2, 2026
Merged

Send all four firmware fields with a registration (fogproject #198)#171
mastacontrola merged 1 commit into
masterfrom
feat/198-registration-sends-firmware-fields

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Companion to FOGProject/fogproject#1674.

Both registration scripts sent sysuuid, and fog.auto.reg also sysserial. FOG 1.6 identifies a machine by four SMBIOS fields and its registration path now scores whatever arrives, so this sends all four on auto.register.php and on the manual path's man.hostexists.php check (the manual flow stops at that check, so the attach has to be possible there).

Read, lowercased and base64-encoded exactly as sysuuid already is. doInventory() overwrites every one of these variables from dmidecode afterward, so the inventory POST is unaffected. A server without the fields ignores them; the 1.6 server side accepts their absence, so the two can merge in either order.

Test suite: 18 passed, 0 failed, golden unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LVm9aM4BHJywMoh1eaJMpZ

Both registration scripts sent the system UUID, and the auto path the
system serial. FOG 1.6 now identifies a machine by four SMBIOS fields --
UUID, system serial, baseboard serial, chassis asset tag -- and its
registration path (fogproject #1674) scores whatever arrives, so a
machine whose NIC was replaced is recognized as its existing host instead
of registering a duplicate. One field scores one point; sending all four
is what makes the match unambiguous on hardware where the UUID is a
placeholder.

The values are read, lowercased and base64-encoded exactly as sysuuid
already was, and are sent on the hostexists check as well as the
register call, since the manual path stops at the check. doInventory()
overwrites every one of these variables from dmidecode afterward, so
nothing here reaches the inventory POST. A server that does not know the
fields ignores them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVm9aM4BHJywMoh1eaJMpZ
@mastacontrola
mastacontrola merged commit fab5ba7 into master Sep 2, 2026
1 check failed
@mastacontrola
mastacontrola deleted the feat/198-registration-sends-firmware-fields branch September 2, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant