From dbdba5335fcbff8fbd0daf6bb083705f0540d046 Mon Sep 17 00:00:00 2001 From: Friedrich Weinmann Date: Tue, 21 Apr 2026 15:28:40 +0200 Subject: [PATCH 1/2] 1.0.1 --- Principal/Principal.psd1 | 17 ++++++++--------- Principal/changelog.md | 4 ++++ Principal/functions/Clear-PrincipalCache.ps1 | 14 +++++++------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Principal/Principal.psd1 b/Principal/Principal.psd1 index c3c160e..90a1e00 100644 --- a/Principal/Principal.psd1 +++ b/Principal/Principal.psd1 @@ -3,7 +3,7 @@ RootModule = 'Principal.psm1' # Version number of this module. - ModuleVersion = '1.0.0' + ModuleVersion = '1.0.1' # ID used to uniquely identify this module GUID = '85a236b4-7360-4ef7-ae99-8813cddf632f' @@ -18,15 +18,14 @@ Copyright = 'Copyright (c) 2020 Friedrich Weinmann' # Description of the functionality provided by this module - Description = 'Resolves Cross-Domain Principal resolution' + Description = 'Offers cached Cross-Domain Principal resolution' # Minimum version of the Windows PowerShell engine required by this module - PowerShellVersion = '5.0' + PowerShellVersion = '5.1' - # Modules that must be imported into the global environment prior to importing - # this module + # Modules that must be imported into the global environment prior to importing this module RequiredModules = @( - @{ ModuleName='PSFramework'; ModuleVersion='1.1.59' } + @{ ModuleName='PSFramework'; ModuleVersion='1.13.426' } ) # Assemblies that must be loaded prior to importing this module @@ -49,13 +48,13 @@ ) # Cmdlets to export from this module - CmdletsToExport = '' + CmdletsToExport = @() # Variables to export from this module - VariablesToExport = '' + VariablesToExport = @() # Aliases to export from this module - AliasesToExport = '' + AliasesToExport = @() # List of all modules packaged with this module ModuleList = @() diff --git a/Principal/changelog.md b/Principal/changelog.md index 06e6e9a..a119dd1 100644 --- a/Principal/changelog.md +++ b/Principal/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.1 (2026-04-21) + ++ Fix: Clear-PrincipalCache - Reseted cached object is missing two essential keys + ## 1.0.0 (2020-06-09) + Initial Release diff --git a/Principal/functions/Clear-PrincipalCache.ps1 b/Principal/functions/Clear-PrincipalCache.ps1 index 7cbe6c7..cf3e62b 100644 --- a/Principal/functions/Clear-PrincipalCache.ps1 +++ b/Principal/functions/Clear-PrincipalCache.ps1 @@ -1,6 +1,5 @@ -function Clear-PrincipalCache -{ -<# +function Clear-PrincipalCache { + <# .SYNOPSIS Clears the principal cache. @@ -18,14 +17,15 @@ Clears the principal cache. #> [CmdletBinding()] - Param ( + param ( ) - process - { + process { $script:principals = @{ - SID = @{ } + Domains = @{ } + NTAccount = @{ } + SID = @{ } UserPrincipalName = @{ } } } From 0adecf3a7f3b1465f7e8e35fc3bf6f49e13452b3 Mon Sep 17 00:00:00 2001 From: Friedrich Weinmann Date: Fri, 22 May 2026 09:46:11 +0200 Subject: [PATCH 2/2] actions --- .github/FUNDING.yml | 13 +++++++++++++ .github/workflows/build.yml | 24 ++++++++++++++++++++++++ .github/workflows/validate.yml | 15 +++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/validate.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..09e2a69 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,13 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] + FriedrichWeinmann +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c0418fb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - master + - main + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - name: Install Prerequisites + run: .\build\vsts-prerequisites.ps1 + shell: powershell + - name: Validate + run: .\build\vsts-validate.ps1 + shell: powershell + - name: Build + run: .\build\vsts-build.ps1 -ApiKey $env:APIKEY + shell: powershell + env: + APIKEY: ${{ secrets.ApiKey }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..5955876 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,15 @@ +on: [pull_request] + +jobs: + validate: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v1 + - name: Install Prerequisites + run: .\build\vsts-prerequisites.ps1 + shell: powershell + - name: Validate + run: .\build\vsts-validate.ps1 + shell: powershell