Skip to main content
Newcomer
Oct 28, 2026 6:15 AM UTC
Question

Authentication with AD giving slow response

Hi Community,

We are experiencing slow authentication responses when users authenticate against Active Directory (AD) in our on-premises BeyondTrust Password Safe,

Basic connectivity between Password Safe and the AD domain controllers has been verified, and the required connections are successful. However, authentication is still taking longer than expected.

Could anyone share the recommended troubleshooting steps to identify the root cause of this delay?

Specifically, I would appreciate guidance on:

  • Which Password Safe logs should be reviewed to investigate slow AD authentication?

  • How can we measure LDAP/LDAPS response times and identify delays during authentication?

  • Are there specific appliance diagnostics or performance checks recommended for this issue?

  • How can we distinguish network latency from slow AD domain controller responses or Password Safe processing delays?

  • Are there any known configuration issues or settings that can contribute to slow AD authentication?

.

Thank you for your help.

2 replies

Guru
Nov 3, 2026 10:06 PM UTC

Hey ​@cyberfox345 

Check your Domain Controllers, I just dealt with a customer that had decommissioned old Domain controllers, but they still was published in the domain and Password Safe was attempting to use them, which caused a delay.

Your Bind accounts is responsible for the authentication and lookup of the users attempting to sign in,
Check the list of domain controllers validate they are alive and available, if needed you can adjust the bind accounts to use specific Domain Controllers to see if that changes the performance. 

I created a script to identify all Domain controllers and see if they responds. It’s simple but only validate if it responds on required ports and if responding to ping. The script requires Active Directory tools.

Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase

# --- DATA COLLECTION LOGIC ---
function Get-DCStatus {
if (!(Get-Module -ListAvailable ActiveDirectory)) {
[System.Windows.MessageBox]::Show("The Active Directory module is required. Please install RSAT.")
return $null
}

try {
$DCs = Get-ADDomainController -Filter * | Select-Object HostName, IPv4Address, Site
$Report = foreach ($DC in $DCs) {
# 1. Basic Network Ping
$PingStatus = Test-Connection -ComputerName $DC.HostName -Count 1 -Quiet

# 2. AD Service Check (LDAP Port 389)
$LdapStatus = Test-NetConnection -ComputerName $DC.HostName -Port 389 -WarningAction SilentlyContinue | Select-Object -ExpandProperty TcpTestSucceeded

# 3. SSL Check (LDAPS Port 636)
$SslStatus = Test-NetConnection -ComputerName $DC.HostName -Port 636 -WarningAction SilentlyContinue | Select-Object -ExpandProperty TcpTestSucceeded

if ($PingStatus -and $LdapStatus -and $SslStatus) {
$OverallStatus = "Available"
}
elseif ($PingStatus -and $LdapStatus -and !$SslStatus) {
$OverallStatus = "LDAP OK / LDAPS Down"
}
elseif ($PingStatus -and !$LdapStatus) {
$OverallStatus = "Network OK / AD Service Down"
}
else {
$OverallStatus = "Unreachable"
}

[PSCustomObject]@{
DomainController = $DC.HostName
IPAddress = $DC.IPv4Address
ADSite = $DC.Site
Ping = if($PingStatus) { "Pass" } else { "Fail" }
LDAP_389 = if($LdapStatus) { "Pass" } else { "Fail" }
LDAPS_636 = if($SslStatus) { "Pass" } else { "Fail" }
Status = $OverallStatus
}
}
return $Report
}
catch {
[System.Windows.MessageBox]::Show("An error occurred: $($_.Exception.Message)")
return $null
}
}

# Collect the data first
Write-Host "Scanning Domain Controllers... please wait." -ForegroundColor Cyan
$Global:DCResults = Get-DCStatus

if ($null -eq $Global:DCResults) {
Write-Error "No data collected. Exiting."
return
}

# --- WPF UI DEFINITION (XAML) ---
# Removed 'CellPadding' to fix the XamlParseException
[xml]$xaml = @"
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="AD Domain Controller Status Report" Height="500" Width="800" WindowStartupLocation="CenterScreen" Background="#F0F0F0">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<TextBlock Text="Domain Controller Availability" FontSize="20" FontWeight="Bold" Margin="0,0,0,20" Foreground="#333"/>

<DataGrid Name="dcGrid" Grid.Row="1" AutoGenerateColumns="True" IsReadOnly="True"
CanUserAddRows="False" AlternationCount="2"
GridLinesVisibility="Horizontal"
RowHeaderWidth="0" Background="White" Foreground="Black"/>

<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,20,0,0">
<Button Name="btnExport" Content="Export to CSV" Width="120" Height="30" Background="#0078D7" Foreground="White" FontWeight="Bold"/>
</StackPanel>
</Grid>
</Window>
"@

# Load XAML
$reader = New-Object System.Xml.XmlNodeReader $xaml
$Window = [Windows.Markup.XamlReader]::Load($reader)

# Map XAML elements to PowerShell variables
$dcGrid = $Window.FindName("dcGrid")
$btnExport = $Window.FindName("btnExport")

# Bind the results to the DataGrid
$dcGrid.ItemsSource = $Global:DCResults

# --- EXPORT LOGIC ---
$btnExport.Add_Click({
$SaveDialog = New-Object Microsoft.Win32.SaveFileDialog
$SaveDialog.Filter = "CSV Files (*.csv)|*.csv"
$SaveDialog.FileName = "DC_Availability_Report.csv"

if ($SaveDialog.ShowDialog() -eq "True") {
try {
$Global:DCResults | Export-Csv -Path $SaveDialog.FileName -NoTypeInformation
[System.Windows.MessageBox]::Show("File exported successfully to: `n$($SaveDialog.FileName)", "Success")
}
catch {
[System.Windows.MessageBox]::Show("Export failed: $($_.Exception.Message)", "Error")
}
}
})

# Show the window
$Window.ShowDialog()


 

Veteran
Nov 4, 2026 5:55 AM UTC

​@cyberfox345 
1. Do you see this issue for every login ? or for the first login of user vs subsequent logins . Also, if user1 logs in and then user2 logs in lets say after 1-2 minutes , does user2 face same slowness issue.
2. is it just AD authentication or SSO is involved.

We had similar issue where it took around 80-90 seconds to log in. Now it is 20-25 seconds ( not optimal but works). Check in the appliance authentication logs. I would suggest to create support ticket