Harden NTLM authentication and restore SGU profiles

This commit is contained in:
2026-09-01 16:42:25 -06:00
parent a166193b66
commit fe77229b48
19 changed files with 657 additions and 226 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ param(
[string]$DefaultCompany = 'Universidad La Salle',
[ValidateRange(10, 60)]
[int]$NtlmTimeoutSeconds = 20,
[ValidateRange(2, 30)]
[int]$ProfileTimeoutSeconds = 10,
[ValidateRange(2, 90)]
[int]$ProfileTimeoutSeconds = 60,
[switch]$CreateMissingOus,
[switch]$DisableCertificateRevocationCheckForLab
)
+2 -2
View File
@@ -55,7 +55,7 @@ $installParams = @{
ClientCertificateThumbprint = $ClientCertificateThumbprint
ServerCertificateThumbprint = $ServerCertificateThumbprint
DomainNetbios = $DomainNetbios
TimeoutSeconds = 35
TimeoutSeconds = 90
}
if ($DotNetRuntimeInstallerPath) {
$installParams.InstallDotNetRuntime = $true
@@ -68,7 +68,7 @@ $guardParams = @{
ClientCertificateThumbprint = $ClientCertificateThumbprint
ServerCertificateThumbprint = $ServerCertificateThumbprint
DomainNetbios = $DomainNetbios
TimeoutSeconds = 35
TimeoutSeconds = 90
RemoteDesktopPrincipal = $RemoteDesktopPrincipal
DotNetRuntimeInstallerPath = $DotNetRuntimeInstallerPath
}
+2 -2
View File
@@ -17,8 +17,8 @@ param(
[string]$DomainNetbios = 'LCI',
[ValidateRange(2, 60)]
[int]$TimeoutSeconds = 35,
[ValidateRange(2, 90)]
[int]$TimeoutSeconds = 90,
[switch]$DoNotSetAsDefaultCredentialProvider,
+2 -2
View File
@@ -16,8 +16,8 @@ param(
[string]$ServerCertificateThumbprint,
[string]$DomainNetbios = 'LCI',
[ValidateRange(2, 60)]
[int]$TimeoutSeconds = 35,
[ValidateRange(2, 90)]
[int]$TimeoutSeconds = 90,
[string]$RemoteDesktopPrincipal = 'LCI\SG-Laboratorio-Usuarios-RDP',
[string]$DotNetRuntimeInstallerPath
)
+1 -1
View File
@@ -23,7 +23,7 @@ if (-not $certificate -or -not $certificate.HasPrivateKey) {
try {
$body = @{ clave = $clave; password = $password } | ConvertTo-Json -Compress
Invoke-RestMethod -Method Post -Uri $BrokerEndpoint -Certificate $certificate `
-ContentType 'application/json' -Body $body -TimeoutSec 20
-ContentType 'application/json' -Body $body -TimeoutSec 90
}
finally {
$password = $null