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
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_sgnd_lib_guard | Ensure the file is sourced as a library and marked as loaded. | — | (globals) |
_adc_run_action | Dispatch an Active Directory client-management action. | — | — |
_adc_record_join_step | Persist one child-step result in the console action tracker. | - $1 ITEM_KEY | — |
_adc_join_domain | Keep the stateful join workflow inside the management executable while mapping its | — | — |
_adc_step_install_packages | Invoke the install action through the module manager. | — | — |
_adc_step_preflight | Invoke the preflight action through the module manager. | — | — |
_adc_step_dns | Invoke the dns action through the module manager. | — | — |
_adc_step_identity | Invoke the identity action through the module manager. | — | — |
_adc_step_discover | Invoke the discover action through the module manager. | — | — |
_adc_step_join | Invoke the join action through the module manager. | — | — |
_adc_step_sssd | Invoke the sssd action through the module manager. | — | — |
_adc_step_register_dns | Invoke the register action through the module manager. | — | — |
_adc_reconcile | Invoke the reconcile action through the module manager. | — | — |
_adc_validate | Invoke the validate action through the module manager. | — | — |
_adc_status | Invoke the status action through the module manager. | — | — |
_adc_leave | Invoke 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.
Menu items
! 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
