Skip to content

luisfeliz79/ADFSLoadTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

ADFSLoadTesting.ps1

A basic approach for load testing of AD FS

By Luis Feliz v1.1 BETA

Portions based on Josh Gavant's original work
https://blogs.msdn.microsoft.com/besidethepoint/2012/10/17/request-adfs-security-token-with-powershell/

Notes:
This testing method has not been officialy approved by Microsoft.
This will not work with Certificate auth.
This will not work with Multi-Factor authentication.


How to use it:


.\ADFSLoadTesting.ps1 -ADFSUrl https://sts.contoso.com

Available Parameters:


RPs
One or more Relaying part trusts identifiers to test against.
Default is urn:federation:MicrosoftOnline

HowLongInSeconds
Amount of time to test for.
Default is 30 seconds

Jobs
Number of Jobs to run when testing.
Default is 8 jobs

Note: In order to push the server the hardest, adjust the number of Jobs to run simulteniously Increase this number until the server is hitting ~ 90-99% CPU

Kerberos
Set this to $true if you wish to use Kerberos authentication.
Default is $false
When this setting is $false, the Credentials parameter will be ignored.

Credentials
One or more sets of credentials to use for authentication.
Default is to ask for Credentials.
When multiple credentials are specified, the script will choose at random for each authentication.

TLSMode
The TLS mode to use. Valid input is tls1.0, tls1.1 or tls1.2.
Default is tls1.2

Examples:



Test against sts.contoso.com, for 5 minutes, using the urn:federation:MicrosoftOnline RPT
.\ADFSLoadTesting.ps1 -ADFSUrl https://sts.contoso.com -HowLongInSeconds 300

Test against sts.contoso.com, with 5 jobs, for 45 seconds, and against Trusts https://app1 and https://app2
.\ADFSLoadTesting.ps1 -ADFSUrl https://sts.contoso.com -RPs https://app1, https://app2 -Jobs 5 -HowLongInSeconds 45


About

A basic approach for load testing of AD FS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published