Register Samba Active Directory server management actions
Source: target-root/usr/local/libexec/solidgroundux/console-modules/20-active-directory-server.sh
Register Samba Active Directory server management actions
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_adsvr_run_action | Dispatch the requested domain-server management action to the standalone manager. | - $1: Management action to execute. | — |
_adsvr_record_provision_step | Persist one child-step result in the console tracker. | - $1 ITEM_KEY | — |
_adsvr_provision_domain | Keep the stateful provisioning workflow inside the management executable while | — | — |
_adsvr_join_additional_console | Map the manager's first failing stage to the corresponding nested console | — | — |
_adsvr_add_install | Forward the install action to the AD Server manager. | — | — |
_adsvr_add_discover | Forward the join-preflight action to the AD Server manager. | — | — |
_adsvr_add_join | Forward the join-domain action to the AD Server manager. | — | — |
_adsvr_add_replication | Forward the join-replication action to the AD Server manager. | — | — |
_adsvr_step_install_packages | Forward the install action to the AD Server manager. | — | — |
_adsvr_step_preflight | Forward the preflight action to the AD Server manager. | — | — |
_adsvr_step_identity | Forward the identity action to the AD Server manager. | — | — |
_adsvr_step_provision | Forward the provision action to the AD Server manager. | — | — |
_adsvr_step_domain_settings | Forward the settings action to the AD Server manager. | — | — |
_adsvr_step_kerberos | Forward the kerberos action to the AD Server manager. | — | — |
_adsvr_step_resolver | Forward the resolver action to the AD Server manager. | — | — |
_adsvr_step_start | Forward the start action to the AD Server manager. | — | — |
_adsvr_step_register_dns | Forward the dns action to the AD Server manager. | — | — |
_adsvr_validate | Forward the validate action to the AD Server manager. | — | — |
_adsvr_status | Forward the status action to the AD Server manager. | — | — |
Description
Registers Active Directory server management actions with the SolidGround Management Console. Persistent provisioning and validation are implemented by manage-active-directory-server.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
Registers Samba Active Directory domain-controller management actions. Persistent implementation is delegated to manage-active-directory-server.sh; individual steps remain exposed for diagnosis and recovery.
Menu items
! Provision domain
Run the complete Active Directory server provisioning sequence. Handler: _adsvr_provision_domain
! Join existing domain as additional DC
Discover the existing domain and join as a writable Samba controller. Handler: _adsvr_join_additional_console Child steps: installation, discovery, join, Kerberos, resolver, service, DNS, replication.
! Install AD server prerequisites
Install Samba AD/DC, Kerberos, and DNS utilities. Handler: _adsvr_step_install_packages
! Validate provisioning inputs
Collect realm settings and validate the machine before changes. Handler: _adsvr_step_preflight
! Prepare domain controller identity
Prepare and validate the domain controller FQDN. Handler: _adsvr_step_identity
! Provision Samba domain
Create the Samba directory database and Active Directory configuration. Handler: _adsvr_step_provision
! Apply initial domain settings
Set Administrator policy and the upstream DNS forwarder. Handler: _adsvr_step_domain_settings
! Install Kerberos configuration
Install and validate Samba's generated krb5.conf. Handler: _adsvr_step_kerberos
! Configure AD resolver
Point the domain controller at Samba DNS and free IPv4 port 53. Handler: _adsvr_step_resolver
! Start AD/DC service
Start Samba AD/DC and validate Samba-owned IPv4 DNS. Handler: _adsvr_step_start
! Register domain controller DNS
Register and validate the DC A, SOA, Kerberos, and LDAP records. Handler: _adsvr_step_register_dns
! Validate AD server
Validate service, DNS, directory, and Kerberos discovery. Handler: _adsvr_validate
! Show AD server status
Show the configured Samba role, realm, and service state. Handler: _adsvr_status
