First Test of PSU 3.0 beta 2 error

@adam

i was trying to test v 3.0 beta 2 and all what i did is replaced the files of 2.10 with 3.0 and got this error in the logs when trying to login

2022-04-13 17:37:52.552 +00:00 [ERR] Did not receive authentication result.
The term ‘Get-ADPrincipalGroupMembership’ is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at , : line 38
at , : line 37

i was to fix that by adding a line to import the module from C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ActiveDirectory\ActiveDirectory.psd1

so it looks like v3 beta does not load the module by default and it will error out if you are using

New-PSUAuthenticationResult -UserName $Credential.UserName -Success -Claims { 
            Get-ADPrincipalGroupMembership $Credential.UserName -Server 'dc' | Select-Object -ExpandProperty Name | ForEach-Object {
                New-PSUAuthorizationClaim -Type Role -Value $_
            }
        }

in auth script.

This will be fixed in the next beta. This didn’t get merged in from 2.10 but it is now.