New-WSOneKerberosPrincipal.ps1


<#PSScriptInfo
 
.VERSION 1.0
 
.GUID 488749d5-d411-49bd-b313-7eb387eadad5
 
.AUTHOR es@it-pro-berlin.de
 
.COMPANYNAME metaBPA.org
 
.COPYRIGHT 2020 metaBPA.org | Evgenij Smirnov | @cj_berlin
 
.TAGS VMware WorkspaceONE Kerberos Active Directory
 
.LICENSEURI https://opensource.org/licenses/MIT
 
.PROJECTURI https://metabpa.org/projects/various-scripts/ws1-kerberos/
 
.ICONURI https://metabpa.org/wp-content/uploads/2019/11/metaBPA-150x150.ico
 
.EXTERNALMODULEDEPENDENCIES ActiveDirectory
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
Creates the Kerberos principal for a WorkspaceONE connector in single-, multi- and cross-domain scenarios.
 
.PRIVATEDATA
 
#>


#Requires -Module ActiveDirectory

<#
  
.DESCRIPTION
This script generates a correct KeyTab file for a WorkspaceONE connector.
 
For this, VMware provides a rudimentary script as described here:
https://techzone.vmware.com/deploying-premises-vmware-identity-manager-vmware-workspace-one-operational-tutorial
 
In a standard VMware scenario where the connector machine is a member of the only domain it will provide
Kerberos authentication against, this script works quite similarly to the original setupKerberos.ps1 but
with much more verbose logging and sanity checks built in.
 
In a multidomain or crossdomain scenario it will generate both correct KeyTab file and correct SPNs for the
principal in Active Directory.
 
As a small bonus, the user created by this script will have a UPN set and some descriptive features populated.
 
In order to run this script successfully, you need to complete the Kerberos configuration and deploy it to the connector.
This is needed to have the krb5.conf file which contains the information about domains beinmg served.
Run it elevated from a location of your choice on the connector machine. The log goes in %TEMP%, as does the
backup of krb5.conf and krb5.keytab
 
#>
 
[CmdletBinding()]
Param(
    [Parameter(Mandatory=$false)][switch]$LogToConsole,
    [Parameter(Mandatory=$false)][switch]$AddEncryptionToConfig,
    [Parameter(Mandatory=$false)][switch]$BackupConfig,
    [Parameter(Mandatory=$false)][switch]$OverwriteExisting,
    [Parameter(Mandatory=$false)][int]$ReplicationTimeout = 60
)
#region constants
$ciphers = @('RC4-HMAC-NT','AES128-SHA1','AES256-SHA1')
$tkt_enc = 'arcfour-hmac-md5'
$minpwdlen_script = 15
$adusr = $null
#endregion
#region function definitions
function Write-ScriptLog {
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory=$true)][string]$LogMessage,
        [Parameter(Mandatory=$false)][int]$Severity = 0,
        [Parameter(Mandatory=$false)][switch]$LogToConsole = $Script:LogToConsole
    )
    $logfile = Join-Path -Path $env:TEMP -ChildPath 'New-WSOneKerberosPrincipal.log'
    switch ($Severity) {
        0 {
            $sev = 'DEBUG'
            $col = 'Gray'
        }
        1 {
            $sev = 'INFO '
            $col = 'Green'
        }
        2 {
            $sev = 'WARN '
            $col = 'Yellow'
        }
        3 {
            $sev = 'ERROR'
            $col = 'Red'
        }
        default {
            $sev = 'OTHER'
            $col = 'Cyan'
        }
    }
    $dt = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
    $msg = ('{0} {1} {2}' -f $dt, $sev, $LogMessage)
    try {
        $msg | Add-Content -Path $logfile -Force -EA Stop
    } catch {
        Write-Warning ('Could not write log to {0}: {1}' -f $logfile, $_.Exception.Message)
    }
    if ($LogToConsole) {
        Write-Host $msg -ForegroundColor $col
    } else {
        switch ($Severity) {
            2 {
                Write-Warning $msg
            }
            3 {
                Write-Error $msg
            }
            default {
                Write-Verbose $msg
            }
        }
    }
}
function Import-KRB5ConfigFile {
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory=$true)][string]$Path
    )
    if (Test-Path -Path $Path -PathType Leaf) {
        try {
            $lines = Get-Content -Path $Path -EA Stop
        } catch {
            return
        }
        $res = @{}
        $cursection = $null
        $curblock = $null
        foreach ($line in $lines) {
            switch -Regex ($line) {
                '^\s*#' {} # comment line
                '^\s*$' {} # empty line
                '^\s*\}\s*$' {
                    $curblock = $null
                }
                '\[(?<section>.*)\]' {
                    $cursection = $Matches['section']
                    $curblock = $null
                    try {
                        $res.Add($cursection,@{})
                    } catch {
                        Write-Warning $_.Exception.Message
                    }
                }
                '^\s*(?<key>\S*)\s*=\s*(?<value>\S*.*\S)\s*$' {
                    if ($Matches['value'] -eq '{') {
                        $curblock = $Matches['key']
                        try {
                            $res[$cursection].Add($curblock,@{})
                        } catch {
                            Write-Warning $_.Exception.Message
                        }
                    } else {
                        if ($null -eq $curblock) {
                            try {
                                $res[$cursection].Add($Matches['key'],$Matches['value'])
                            } catch {}
                        } else {
                            try {
                                $res[$cursection][$curblock].Add($Matches['key'],$Matches['value'])
                            } catch {
                                Write-Warning $_.Exception.Message
                            }
                        }
                    }
                }
            }
        }
        $res
    }
}
function Export-KRB5ConfigFile {
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory=$true)][Object]$Config,
        [Parameter(Mandatory=$true)][string]$Path
    )
    if ($Config.GetType().Name -ne 'Hashtable') {
        Write-ScriptLog ('KRB5 Export: Config argument of a wrong type [{0}]' -f $Config.GetType().Name) -Severity 2
        return $false
    }
    $lines = @('#','# KRB5 config file for WorkspaceONE Access connector','# Initially generated by vIDM setup','# Modified by New-WSOneKerberosPrincipal.ps1','# Berlin 2020, https://metabpa.org @cj_berlin','#')
    $firstsection = $true
    foreach ($section in $Config.GetEnumerator()) {
        if ($firstsection) { 
            $firstsection = $false
        } else {
            $lines += ''
        }
        $lines += ('[{0}]' -f $section.Name)
        foreach($item in $Config[$section.Name].GetEnumerator()) {
            if ($item.Value.GetType().Name -ne 'Hashtable') {
                $lines += (' {0} = {1}' -f $item.Name, $item.Value)
            } else {
                $lines += (' {0} = {{' -f $item.Name)
                foreach ($parm in $item.Value.GetEnumerator()) {
                    $lines += (' {0} = {1}' -f $parm.Name, $parm.Value)
                }
                $lines += ' }'
            }
        }
    }
    try {
        $lines | Set-Content -Path $Path -Encoding UTF8 -Force -EA Stop
    } catch {
        Write-ScriptLog ('KRB5 Export: Error writing file {0}: {1}' -f $Path, $_.Exception.Message) -Severity 2
        return $false
    }
    return $true
}
#endregion
#region verifying prereqs
Write-ScriptLog -LogMessage '*** KERBEROS PRINCIPAL GENERATOR FOR WORKSPACEONE ***' -Severity 1
Write-ScriptLog -LogMessage ('Started as {0}\{1} on computer {2} from {3}' -f $env:USERDOMAIN, $env:USERNAME, $env:COMPUTERNAME, $PSScriptRoot) -Severity 1
Write-ScriptLog -LogMessage 'Verifying prerequisites for execution' -Severity 1
Write-ScriptLog -LogMessage 'Checking for elevated privileges...'
if (-not ([Security.Principal.WindowsPrincipal]([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
    Write-ScriptLog -LogMessage 'This script needs to run elevated. Please open an elevated shell and re-run script.' -Severity 2
    return
}
Write-Verbose 'Looking up the service path of the IDM connector...'
$idmsvc = Get-CimInstance -ClassName 'Win32_Service' -Filter "Name='VMwareIDMConnector'"
if ($null -ne $idmsvc) {
    $svcexe = $idmsvc.PathName
    $idmpath = ($svcexe -split "\\oss\\")[0]
    if ($idmpath -eq $svcexe) {
        Write-ScriptLog -LogMessage ('Something is wrong with the installation path, it doesn''t seem to contain \oss\: {0}' -f $svcexe) -Severity 2
        return
    }
    Write-ScriptLog -LogMessage ('Service found, installed in {0}' -f $idmpath)
} else {
    Write-ScriptLog -LogMessage 'IDM connector service is not installed on this machine!' -Severity 2
    return
}
$confpath = Join-Path $idmpath -ChildPath 'usr\local\horizon\conf'
if (Test-Path $confpath -PathType Container) {
    Write-ScriptLog ('Configuration path found: {0}' -f $confpath)
} else {
    Write-ScriptLog ('Configuration path not found: {0}' -f $confpath) -Severity 2
    return
}
$conffile = Join-Path $confpath -ChildPath 'krb5.conf'
if (Test-Path $conffile -PathType Leaf) {
    Write-ScriptLog ('KRB5 Configuration file found: {0}' -f $conffile)
} else {
    Write-ScriptLog ('KRB5 Configuration file not found: {0}' -f $conffile) -Severity 2
    return
}
$keytabfile = Join-Path $confpath -ChildPath 'krb5.keytab'
if (Test-Path $keytabfile -PathType Leaf) {
    if ($OverwriteExisting) {
        Write-ScriptLog ('KRB5 Keytab file found and will be overwritten: {0}' -f $keytabfile)
    } else {
        Write-ScriptLog ('KRB5 Keytab file found: {0}' -f $keytabfile) -Severity 2
        return
    }
} else {
    Write-ScriptLog ('KRB5 Keytab file not found: {0}' -f $keytabfile)
}
if ((Get-Module ActiveDirectory -ListAvailable).Count -gt 0) {
    Write-ScriptLog 'ActiveDirectory module present'
} else {
    Write-ScriptLog 'ActiveDirectory module not present!' -Severity 2
    return
}
$ktpass = Join-Path -Path $ENV:SystemRoot -ChildPath 'System32\ktpass.exe'
if (Test-Path $ktpass -PathType Leaf) {
    Write-ScriptLog ('KTPASS.EXE found: {0}' -f $ktpass)
} else {
    Write-ScriptLog ('KTPASS.EXE not found: {0}' -f $ktpass) -Severity 2
    return
}
try {
    $swa = Add-Type -AssemblyName System.Web -EA Stop
} catch {
    Write-ScriptLog ('Could not load assembly for password generation: {0}' -f $_.Exception.Message) -Severity 2
    return
}
#endregion
#region checking AD and INI files, creating AD user
Write-ScriptLog -LogMessage 'All prerequisites met, checking for AD configuration' -Severity 1
try {
    Import-Module ActiveDirectory -EA Stop
} catch {
    Write-ScriptLog ('Error importing ActiveDirectory module: {0}' -f $_.Exception.Message) -Severity 3
    return
}
$conf_ok = $true
$krb5config = Import-KRB5ConfigFile -Path $conffile
@('libdefaults','domain_realm','realms') | ForEach-Object {
    if ($krb5config.ContainsKey($_)) {
        Write-ScriptLog ('KRB5 config contains the {0} section' -f $_)
    } else {
        Write-ScriptLog ('KRB5 config is missing the {0} section' -f $_) -Severity 2
        $conf_ok = $false
    }
}
if ($conf_ok) {
    Write-ScriptLog 'KRB5 config contains all necessary sections' -Severity 1
} else {
    return
}
$owndomain = (Get-CimInstance Win32_ComputerSystem).Domain
Write-ScriptLog ('Machine domain of the agent host: {0}' -f $owndomain)
if ($krb5config.realms.ContainsKey($owndomain)) {
    Write-ScriptLog 'Authenitcating against own domain'
} else {
    Write-ScriptLog 'Authenitcating against other domains only'
}
$ownname = $env:COMPUTERNAME
$ownfqdn = ('{0}.{1}' -f $ownname, $owndomain)
$ownupn = ('{0}@{1}' -f $ownname, $owndomain)
Write-ScriptLog ('FQDN of the agent host: {0}' -f $ownfqdn)
Write-ScriptLog ('Reading the password policy from domain: {0}' -f $ownfqdn)
try {
    $minpwdlen = ([ADSI]"LDAP://$owndomain").minPwdLength[0]
} catch {
    $minpwdlen = 7
    Write-ScriptLog ('Error reading the min password length, setting to {0}: {1}' -f $minpwdlen, $_.Exception.Message) -Severity 2
}
$minpwdlen = [math]::Max($minpwdlen_script,$minpwdlen)
Write-ScriptLog ('Target password length for the principal: {0}' -f $minpwdlen)
try {
    $password = [System.Web.Security.Membership]::GeneratePassword($minpwdlen,1)
} catch {
    Write-ScriptLog ('Error generating password: {0}' -f $_.Exception.Message) -Severity 2
    return
}
$adusr = Get-ADUser -Filter {sAMAccountName -eq $ownname}
if ($null -eq $adusr) {
    $newAccount = @{
        'sAMAccountName' = $ownname
        'UserPrincipalName' = $ownupn
        'name' = $ownname
        'AccountPassword' = ($password | ConvertTo-SecureString -AsPlainText -Force)
        'CannotChangePassword' = $true
        'PasswordNeverExpires' = $true
        'PasswordNotRequired' = $true
        'Enabled' = $true
        'DisplayName' = ('WorkspaceONE Kerberos Principal ({0})' -f $ownname)
        'Description' = ('Created by New-WSOneKerberosPrincipal run as {0}\{1}' -f $env:USERDOMAIN, $env:USERNAME)
    }
    try {
        $adusr = New-ADUser @newAccount -PassThru -EA Stop
    } catch {
        Write-ScriptLog ('Error creating new AD User {0} in default container: {1}' -f $ownname, $_.Exception.Message)  -Severity 2
        return
    }
    # wait for replica
    $adusr = $null
    $timer = New-Object System.Diagnostics.Stopwatch
    $timer.Start()
    do {
        $adusr = Get-ADUser -Filter {sAMAccountName -eq $ownname}
        if ($null -eq $adusr) { Start-Sleep -Seconds 5 }
    } until (($null -ne $adusr) -or ($timer.Elapsed.TotalSeconds -gt $ReplicationTimeout))
    if ($null -eq $adusr) { 
        Write-ScriptLog ('AD User not found after {0} seconds' -f $ReplicationTimeout)  -Severity 2
        return
    }
    $timer.Stop()
} else {
    if ($OverwriteExisting) {
        Write-ScriptLog ('AD User found and will be modified: {0}' -f $adusr.DistinguishedName)  -Severity 1
        try {
            $adusr | Set-ADUser -UserPrincipalName $ownupn -Description ('Modified by New-WSOneKerberosPrincipal run as {0}\{1}' -f $env:USERDOMAIN, $env:USERNAME) -DisplayName ('WorkspaceONE Kerberos Principal ({0})' -f $ownname) -EA Stop
        } catch {
            Write-ScriptLog ('Error writing description of existing AD User {0}: {1}' -f $adusr.DistinguishedName, $_.Exception.Message)  -Severity 2
            return
        }
        Write-ScriptLog 'User properties modified'
        try {
            $adusr | Set-ADAccountPassword -NewPassword ($password | ConvertTo-SecureString -AsPlainText -Force) -EA Stop
        } catch {
            Write-ScriptLog ('Error resetting password of existing AD User {0}: {1}' -f $adusr.DistinguishedName, $_.Exception.Message)  -Severity 2
            return
        }
        Write-ScriptLog 'User password reset'
    } else {
        Write-ScriptLog ('AD User found and will not be modified: {0}' -f $adusr.DistinguishedName)  -Severity 2
        return
    }
}
if ($null -ne $adusr) {
    try {
        $adusr | Set-ADAccountControl -DoesNotRequirePreAuth:$true -EA Stop
    } catch {
        Write-ScriptLog ('Error disabling pre-auth for AD User {0}: {1}' -f $adusr.DistinguishedName, $_.Exception.Message)  -Severity 2
        return
    }
    Write-ScriptLog 'User pre-authentication disabled'
}
#endregion
#region writing KRB principal
$spns = @(
    ('HTTP/{0}' -f $ownname)
    ('HTTP/{0}' -f $ownfqdn)
)
$realms = $krb5config['domain_realm'].Keys
if ($realms -notcontains $owndomain) {
    $realms += $owndomain
}
$principals = New-Object System.Collections.ArrayList
foreach ($realm in $realms) {
    $null = $principals.Add(('HTTP/{0}@{1}' -f $ownname, $realm))
    $null = $principals.Add(('HTTP/{0}@{1}' -f $ownfqdn, $realm))
}
Write-ScriptLog ('The following principals will be created: {0}{1}' -f [Environment]::NewLine, ($principals -join [Environment]::NewLine))
$cmds = New-Object System.Collections.ArrayList
$veryfirst = $true
foreach ($cipher in $ciphers) {
    $first = $true
    foreach ($princ in $principals) {
        if ($first) {
            if ($veryfirst) {
                $cmd = ('{0} -princ {1} -mapuser {2} -crypto {3} -ptype KRB5_NT_PRINCIPAL -pass "{4}" -out "{5}" -setupn -setpass 2>&1' -f $ktpass, $princ, $ownupn, $cipher, $password, $keytabfile)
                $veryfirst = $false
            } else {
                $cmd = ('{0} -princ {1} -mapuser {2} -crypto {3} -ptype KRB5_NT_PRINCIPAL -pass "{4}" -in "{5}" -out "{5}" -setupn -setpass 2>&1' -f $ktpass, $princ, $ownupn, $cipher, $password, $keytabfile)
            }
            $first = $false
        } else {
            $cmd = ('{0} -princ {1} -crypto {3} -ptype KRB5_NT_PRINCIPAL -pass "{4}" -in "{5}" -out "{5}" -setupn -setpass 2>&1' -f $ktpass, $princ, $ownupn, $cipher, $password, $keytabfile)
        }
        $null = $cmds.Add($cmd)
    }
}
Write-ScriptLog 'Running KTPASS commands' -Severity 1
$allkt_ok = $true
foreach ($cmd in $cmds) {
    $cmd.Replace( $password, '*****')
    $cmd_ok = $true
    try {
        $res = Invoke-Expression -Command $cmd -EA Stop
    } catch {
        Write-ScriptLog ('Error code {0} writing KEYTAB: {1}' -f $lastexitcode, $_.Exception.Message)
        $cmd_ok = $false
        $allkt_ok = $false
    }
    if ($cmd_ok) {
        if ($lastexitcode -eq 0) {
            Write-ScriptLog 'KEYTAB updated successfully' -Severity 1
        } else {
            Write-ScriptLog ('KEYTAB updated with exit code {0}, please review result:{1}{2}' -f $lastexitcode, [Environment]::NewLine, ($res -join '')) -Severity 2
            $allkt_ok = $false
        }
    }
}
if ($allkt_ok) {
    Write-ScriptLog 'All KTPASS commands successful, assigning SPNs to user...'
    #generate SPNs
    $adusr = Get-ADUser -Filter {sAMAccountName -eq $ownname} -Properties ServicePrincipalName
    foreach ($spn in ($spns + $principals)) {
        if ($adusr.SevicePrincipalName -notcontains $spn) {
            Write-ScriptLog ('Adding {0} to the SPNs...' -f $spn)
            try {
                $adusr | Set-ADUser -ServicePrincipalNames @{Add=$spn} -EA Stop
            } catch {
        
            }
        }
    }
} else {
    Write-ScriptLog 'There were problems running KTPASS commands, please review results and rerun script' -Severity 2
    return
}
#endregion
#region backup config
if ($BackupConfig) {
    $backupFolder = Join-Path -Path $ENV:TEMP -ChildPath "KRB5_Backup_$(Get-Date -Format 'yyyyMMdd_HHmmss')"
    try {
        $null = New-Item -Path $backupFolder -ItemType Directory -Force -EA Stop
    } catch {
        Write-ScriptLog ('Could not create backup folder {0}: {1}' -f $backupFolder, $_.Exception.Message) -Severity 2
        return
    }
    Write-ScriptLog ('Backup folder created: {0}' -f $backupFolder)
    if (Test-Path $keytabfile -PathType Leaf) {
        Copy-Item -Path $keytabfile -Destination $backupFolder
    }
    if (Test-Path $conffile -PathType Leaf) {
        Copy-Item -Path $conffile -Destination $backupFolder
    }
}
#endregion
#region modifying krb5.conf
if ($AddEncryptionToConfig) {
    if ($krb5config.libdefaults.Keys -notcontains 'default_tkt_enctypes') {
        $krb5config.libdefaults.Add('default_tkt_enctypes',$tkt_enc)
        Export-KRB5ConfigFile -Config $krb5config -Path $conffile
    } else {
        Write-ScriptLog 'Current config contains default_tkt_enctypes already, will skip rewriting KRB5.conf'
    }
}
#endregion

# SIG # Begin signature block
# MIIefQYJKoZIhvcNAQcCoIIebjCCHmoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUDMsvwke8/Msp2KhgmxvBQKfd
# DzGgghnAMIIFQTCCAymgAwIBAgITXwAAAAIjZCsPuYSflAAAAAAAAjANBgkqhkiG
# 9w0BAQsFADBcMQswCQYDVQQGEwJERTEPMA0GA1UEBxMGQmVybGluMRQwEgYDVQQK
# EwttZXRhQlBBLm9yZzEMMAoGA1UECxMDRGV2MRgwFgYDVQQDEw9tZXRhQlBBIFJv
# b3Qg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