From dbf3cf2c47f3cf0e5a4ab4920df3270eb4966bb2 Mon Sep 17 00:00:00 2001 From: JP-Consulting Date: Tue, 14 Oct 2025 22:03:03 +0200 Subject: [PATCH] - Update Set-PASUser function to allow login hour range from 0 to 24 - Also added a missing vaultAuthorization - Add 'PKIPN' to allowed authentication methods in user and directory mapping functions --- docs/collections/_commands/Set-PASUser.md | 2 +- psPAS/Functions/LDAPDirectories/New-PASDirectoryMapping.ps1 | 2 +- psPAS/Functions/LDAPDirectories/Set-PASDirectoryMapping.ps1 | 2 +- psPAS/Functions/User/New-PASUser.ps1 | 2 +- psPAS/Functions/User/Set-PASUser.ps1 | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/collections/_commands/Set-PASUser.md b/docs/collections/_commands/Set-PASUser.md index cd8250b0..8a9a8f5c 100644 --- a/docs/collections/_commands/Set-PASUser.md +++ b/docs/collections/_commands/Set-PASUser.md @@ -934,7 +934,7 @@ Accept wildcard characters: False ### -loginToHour The end of the timeframe the user account is permitted to authenticate. -Provide an hour of the day in 24-hour format (0-23) +Provide an hour of the day in 24-hour format (0-24) Minimum required version 13.2 diff --git a/psPAS/Functions/LDAPDirectories/New-PASDirectoryMapping.ps1 b/psPAS/Functions/LDAPDirectories/New-PASDirectoryMapping.ps1 index 87ca2176..fb5584b1 100644 --- a/psPAS/Functions/LDAPDirectories/New-PASDirectoryMapping.ps1 +++ b/psPAS/Functions/LDAPDirectories/New-PASDirectoryMapping.ps1 @@ -84,7 +84,7 @@ function New-PASDirectoryMapping { ValueFromPipelinebyPropertyName = $true )] [AllowEmptyCollection()] - [ValidateSet('SAML', 'PKI', 'FIDO', 'WINDOWS')] + [ValidateSet('SAML', 'PKI', 'PKIPN', 'FIDO', 'WINDOWS')] [string[]]$allowedAuthenticationMethods ) diff --git a/psPAS/Functions/LDAPDirectories/Set-PASDirectoryMapping.ps1 b/psPAS/Functions/LDAPDirectories/Set-PASDirectoryMapping.ps1 index 0bb95ce5..5aeca657 100644 --- a/psPAS/Functions/LDAPDirectories/Set-PASDirectoryMapping.ps1 +++ b/psPAS/Functions/LDAPDirectories/Set-PASDirectoryMapping.ps1 @@ -90,7 +90,7 @@ function Set-PASDirectoryMapping { ValueFromPipelinebyPropertyName = $true )] [AllowEmptyCollection()] - [ValidateSet('SAML', 'PKI', 'FIDO', 'WINDOWS')] + [ValidateSet('SAML', 'PKI', 'PKIPN', 'FIDO', 'WINDOWS')] [string[]]$allowedAuthenticationMethods ) diff --git a/psPAS/Functions/User/New-PASUser.ps1 b/psPAS/Functions/User/New-PASUser.ps1 index 74647382..c0b4f794 100644 --- a/psPAS/Functions/User/New-PASUser.ps1 +++ b/psPAS/Functions/User/New-PASUser.ps1 @@ -407,7 +407,7 @@ function New-PASUser { ValueFromPipelinebyPropertyName = $true, ParameterSetName = 'Gen2' )] - [ValidateSet('SAML', 'PKI', 'FIDO', 'WINDOWS')] + [ValidateSet('SAML', 'PKI', 'PKIPN', 'FIDO', 'WINDOWS')] [AllowEmptyCollection()] [string[]]$allowedAuthenticationMethods ) diff --git a/psPAS/Functions/User/Set-PASUser.ps1 b/psPAS/Functions/User/Set-PASUser.ps1 index 05025169..8c11ca10 100644 --- a/psPAS/Functions/User/Set-PASUser.ps1 +++ b/psPAS/Functions/User/Set-PASUser.ps1 @@ -56,7 +56,7 @@ function Set-PASUser { )] [AllowEmptyCollection()] [ValidateSet('PIMSU', 'PSM', 'PSMP', 'PVWA', 'WINCLIENT', 'PTA', 'PACLI', 'NAPI', 'XAPI', 'HTTPGW', - 'EVD', 'CPM', 'PVWAApp', 'PSMApp', 'AppPrv', 'AIMApp', 'PSMPApp', 'GUI')] + 'EVD', 'CPM', 'PVWAApp', 'PSMApp', 'AppPrv', 'AIMApp', 'PSMPApp', 'GUI', 'IBVSDK')] [string[]]$unAuthorizedInterfaces, [parameter( @@ -177,7 +177,7 @@ function Set-PASUser { ValueFromPipelinebyPropertyName = $true, ParameterSetName = 'Gen2' )] - [ValidateRange(0, 23)] + [ValidateRange(0, 24)] [int]$loginToHour, [parameter( @@ -420,7 +420,7 @@ function Set-PASUser { ValueFromPipelinebyPropertyName = $true, ParameterSetName = 'Gen2' )] - [ValidateSet('SAML', 'PKI', 'FIDO', 'WINDOWS')] + [ValidateSet('SAML', 'PKI', 'PKIPN', 'FIDO', 'WINDOWS')] [AllowEmptyCollection()] [string[]]$allowedAuthenticationMethods )