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
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_load_ad_management_library | Locate and source the shared Active Directory management helpers. | — | — |
_adc_validate_realm | Validate a realm name using the shared AD validation helper. | — | — |
_adc_validate_account | Validate a domain account name using the shared AD validation helper. | — | — |
_adc_collect_context | Collect Active Directory client join context. | — | — |
_adc_require_context | Ensure Active Directory client join context is available. | — | — |
_adc_step_install_packages | Install and validate realmd, SSSD, Kerberos, and Active Directory client prerequisites. | — | — |
_adc_step_preflight | Collect join inputs and reject a machine that is already joined to a realm. | — | — |
_adc_step_dns | Point the client resolver at the authoritative Active Directory DNS server and verify its SOA. | — | — |
_adc_step_identity | Set the client FQDN and maintain the matching /etc/hosts entry. | — | — |
_adc_step_discover | Validate realm, Kerberos, and LDAP service discovery before joining. | — | — |
_adc_host_keytab_valid | Confirm that /etc/krb5.keytab exists, contains usable principals, and authenticates | — | — |
_adc_ensure_host_keytab | Restore the machine keytab required by SSSD without changing the configured realm, | — | — |
_adc_step_join | Join the machine to the selected Active Directory realm. | — | — |
_adc_enable_home_directories | Enable PAM's standard first-login home-directory creation for AD users. | — | — |
_adc_step_sssd | Normalize, enable, restart, and validate the SSSD client service. | — | — |
_adc_dns_record_matches | Verify that the client hostname resolves to its expected IPv4 address. | — | — |
_adc_step_register_dns | Create and verify the client Active Directory DNS A record when needed. | — | — |
_adc_join_domain | Execute the complete join workflow in one process so collected join context is | — | — |
_adc_validate | Validate Active Directory client membership, DNS/search-domain configuration, and local integration. | — | — |
_adc_reconcile | Repair safe local Active Directory client drift. | — | — |
_adc_status | Display client FQDN, realm membership, SSSD state, and realm details. | — | — |
_adc_leave | Leave the currently joined Active Directory realm after confirmation. | — | — |
_adc_action_is_mutating | Identify AD client actions that change the host or domain configuration. | — | — |
_adc_run_action | Dispatch 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).
