Manage Active Directory Client

SolidGroundUX DocumentationSolidGroundUX
NL

Join, reconcile, validate, and inspect an Active Directory client

Source: target-root/usr/local/libexec/solidgroundux/manage-active-directory-client.sh

Join, reconcile, validate, and inspect an Active Directory client

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_load_ad_management_libraryLocate and source the shared Active Directory management helpers.——
_adc_validate_realmValidate a realm name using the shared AD validation helper.——
_adc_validate_accountValidate a domain account name using the shared AD validation helper.——
_adc_collect_contextCollect Active Directory client join context.——
_adc_require_contextEnsure Active Directory client join context is available.——
_adc_step_install_packagesInstall and validate realmd, SSSD, Kerberos, and Active Directory client prerequisites.——
_adc_step_preflightCollect join inputs and reject a machine that is already joined to a realm.——
_adc_step_dnsPoint the client resolver at the authoritative Active Directory DNS server and verify its SOA.——
_adc_step_identitySet the client FQDN and maintain the matching /etc/hosts entry.——
_adc_step_discoverValidate realm, Kerberos, and LDAP service discovery before joining.——
_adc_host_keytab_validConfirm that /etc/krb5.keytab exists, contains usable principals, and authenticates——
_adc_ensure_host_keytabRestore the machine keytab required by SSSD without changing the configured realm,——
_adc_step_joinJoin the machine to the selected Active Directory realm.——
_adc_step_sssdNormalize, enable, restart, and validate the SSSD client service.——
_adc_dns_record_matchesVerify that the client hostname resolves to its expected IPv4 address.——
_adc_step_register_dnsCreate and verify the client Active Directory DNS A record when needed.——
_adc_join_domainExecute the complete join workflow in one process so collected join context is——
_adc_validateValidate Active Directory client membership, DNS/search-domain configuration, and local integration.——
_adc_reconcileRepair safe local Active Directory client drift.——
_adc_statusDisplay client FQDN, realm membership, SSSD state, and realm details.——
_adc_leaveLeave the currently joined Active Directory realm after confirmation.——
_adc_action_is_mutatingIdentify AD client actions that change the host or domain configuration.——
_adc_run_actionDispatch an Active Directory client-management action.- $1: Management action to execute.—

Description

Implements persistent Active Directory client management actions exposed by the 25-active-directory-client Management Console module.

Usage

Run the executable from its shell command (or installed wrapper):

manage-active-directory-client --action status
manage-active-directory-client --action validate
manage-active-directory-client --dryrun --action reconcile

Script-specific options:

  • --action NAME, -a: Management action (supported actions: join-all, install, preflight, dns, identity, discover, join, sssd, register, reconcile, validate, status, leave).