Active Directory Client

SolidGroundUX DocumentationSolidGroundUX
NL

Register Active Directory client management actions

Source: target-root/usr/local/libexec/solidgroundux/console-modules/25-active-directory-client.sh

Register Active Directory client management actions

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure the file is sourced as a library and marked as loaded.—(globals)
_adc_run_actionDispatch an Active Directory client-management action.——
_adc_record_join_stepPersist one child-step result in the console action tracker.- $1 ITEM_KEY—
_adc_join_domainKeep the stateful join workflow inside the management executable while mapping its——
_adc_step_install_packagesInvoke the install action through the module manager.——
_adc_step_preflightInvoke the preflight action through the module manager.——
_adc_step_dnsInvoke the dns action through the module manager.——
_adc_step_identityInvoke the identity action through the module manager.——
_adc_step_discoverInvoke the discover action through the module manager.——
_adc_step_joinInvoke the join action through the module manager.——
_adc_step_sssdInvoke the sssd action through the module manager.——
_adc_step_register_dnsInvoke the register action through the module manager.——
_adc_reconcileInvoke the reconcile action through the module manager.——
_adc_validateInvoke the validate action through the module manager.——
_adc_statusInvoke the status action through the module manager.——
_adc_leaveInvoke the leave action through the module manager.——

Description

Registers Active Directory client management actions with the SolidGround Management Console. Persistent join, reconciliation, validation, and repair operations are implemented by manage-active-directory-client.sh.

Module validation contract

Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable

Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.

Console registration

Provides Active Directory client preparation and domain membership management. The complete join workflow is exposed together with its individual steps for diagnosis, validation, status inspection, DNS registration, and domain leave.

! Join domain

Run the complete Active Directory client join sequence. Handler: _adc_join_domain

! Install AD client prerequisites

Install realmd, SSSD, Kerberos, and Active Directory client utilities. Handler: _adc_step_install_packages

! Validate join inputs

Collect realm, DNS, account, and machine identity settings. Handler: _adc_step_preflight

! Configure Active Directory DNS

Point the client at the authoritative Active Directory DNS server. Handler: _adc_step_dns

! Prepare client identity

Set and validate the machine FQDN before joining. Handler: _adc_step_identity

! Discover Active Directory services

Validate realm, Kerberos, and LDAP service discovery. Handler: _adc_step_discover

! Join Active Directory realm

Join the machine to the selected realm. Handler: _adc_step_join

! Start SSSD

Start and validate the SSSD client service. Handler: _adc_step_sssd

! Register client DNS

Register and verify the client IPv4 host record. Handler: _adc_step_register_dns

! Reconcile AD client

Repair safe local AD client drift without rejoining the realm. Handler: _adc_reconcile

! Validate AD client

Validate membership, service discovery, and SSSD. Handler: _adc_validate

! Show AD client status

Show machine identity and current realm membership. Handler: _adc_status

! Leave domain

Leave the currently joined Active Directory realm. Handler: _adc_leave