Active Directory Server

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_adsvr_run_actionDispatch the requested domain-server management action to the standalone manager.- $1: Management action to execute.—
_adsvr_record_provision_stepPersist one child-step result in the console tracker.- $1 ITEM_KEY—
_adsvr_provision_domainKeep the stateful provisioning workflow inside the management executable while——
_adsvr_join_additional_consoleMap the manager's first failing stage to the corresponding nested console——
_adsvr_add_installForward the install action to the AD Server manager.——
_adsvr_add_discoverForward the join-preflight action to the AD Server manager.——
_adsvr_add_joinForward the join-domain action to the AD Server manager.——
_adsvr_add_replicationForward the join-replication action to the AD Server manager.——
_adsvr_step_install_packagesForward the install action to the AD Server manager.——
_adsvr_step_preflightForward the preflight action to the AD Server manager.——
_adsvr_step_identityForward the identity action to the AD Server manager.——
_adsvr_step_provisionForward the provision action to the AD Server manager.——
_adsvr_step_domain_settingsForward the settings action to the AD Server manager.——
_adsvr_step_kerberosForward the kerberos action to the AD Server manager.——
_adsvr_step_resolverForward the resolver action to the AD Server manager.——
_adsvr_step_startForward the start action to the AD Server manager.——
_adsvr_step_register_dnsForward the dns action to the AD Server manager.——
_adsvr_validateForward the validate action to the AD Server manager.——
_adsvr_statusForward 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.

! 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