Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -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']
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 8 additions & 9 deletions Principal/Principal.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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 = @()
Expand Down
4 changes: 4 additions & 0 deletions Principal/changelog.md
Original file line number Diff line number Diff line change
@@ -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
14 changes: 7 additions & 7 deletions Principal/functions/Clear-PrincipalCache.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
function Clear-PrincipalCache
{
<#
function Clear-PrincipalCache {
<#
.SYNOPSIS
Clears the principal cache.

Expand All @@ -18,14 +17,15 @@
Clears the principal cache.
#>
[CmdletBinding()]
Param (
param (

)

process
{
process {
$script:principals = @{
SID = @{ }
Domains = @{ }
NTAccount = @{ }
SID = @{ }
UserPrincipalName = @{ }
}
}
Expand Down
Loading