vcf_esxi_ad_auth

Execution module for ESXi native Active Directory join.

Covers 912-controls ESXi.enable-ad-auth_adv: join an ESXi host to an AD domain natively (plaintext AD credentials sent to the host). For the CAM/auth-proxy variant see vcf_esxi_auth_proxy.

saltext.vcf.modules.vcf_esxi_ad_auth.get_ad_state(host, profile=None)[source]

Return the current AD-join state for host.

CLI Example:

salt '*' vcf_esxi_ad_auth.get_ad_state esxi-01
saltext.vcf.modules.vcf_esxi_ad_auth.join_domain(host, domain_name, username, password, profile=None)[source]

Join host to domain_name using AD username / password.

CLI Example:

salt '*' vcf_esxi_ad_auth.join_domain esxi-01 corp.example.com \
    'CORP\svc-esx-join' 'S3cret!'
saltext.vcf.modules.vcf_esxi_ad_auth.leave_domain(host, force=False, profile=None)[source]

Leave the current AD domain on host.

CLI Example:

salt '*' vcf_esxi_ad_auth.leave_domain esxi-01 force=True