Skip to content

Commit

Permalink
Merge pull request #635 from Badgerati/develop
Browse files Browse the repository at this point in the history
v2.0.1
  • Loading branch information
Badgerati authored Nov 29, 2020
2 parents 999b2ab + b4193f1 commit 7e3fea8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release Notes

## v2.0.1

```plain
### Bugs
* #631: Parse username during Windows AD authentication
* #632: Fixes null reference exception during server restart
```

## v2.0.0

```plain
Expand Down
3 changes: 3 additions & 0 deletions src/Private/Authentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ function Get-PodeAuthWindowsADMethod
return {
param($username, $password, $options)

# parse username to remove domains
$username = (($username -split '@')[0] -split '\\')[-1]

# validate and retrieve the AD user
$noGroups = $options.NoGroups
$openLdap = $options.OpenLDAP
Expand Down
2 changes: 1 addition & 1 deletion src/Private/Server.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function Restart-PodeInternalServer
$PodeContext.Server.Handlers[$_].Clear()
}

$PodeContext.Views.Clear()
$PodeContext.Server.Views.Clear()
$PodeContext.Timers.Clear()
$PodeContext.Schedules.Clear()
$PodeContext.Server.Logging.Types.Clear()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Server.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Describe 'Restart-PodeInternalServer' {
Snapins = @{ Exported = @() }
Functions = @{ Exported = @() }
}
Views = @{ 'key' = 'value' };
};
Metrics = @{
Server = @{
Expand All @@ -152,7 +153,6 @@ Describe 'Restart-PodeInternalServer' {
}
Timers = @{ 'key' = 'value' }
Schedules = @{ 'key' = 'value' };
Views = @{ 'key' = 'value' };
}

Restart-PodeInternalServer | Out-Null
Expand Down

0 comments on commit 7e3fea8

Please sign in to comment.