Skip to content

Commit

Permalink
no users logged in / changelog updates (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc authored May 31, 2023
1 parent 0c0da00 commit f13cfcb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion scripts/automation/Radius/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
## 1.0.3

Release Date: May 24, 2023
Release Date: May 30, 2023

#### RELEASE NOTES

```
Fixed an issue affecting permissions on certain MacOS devices when attempting to deploy certs
Improved performance when reviewing Command Results by changing fetch requests to Search-JCSDKCommandResult endpoint
Added a condidtion for returning exit 4 on windows systems when no users are logged in
```

#### FEATURES:

- Fixed an issue affecting permissions on certain MacOS devices when attempting to deploy certs
- Improved performance when reviewing Command Results by changing fetch requests to Search-JCSDKCommandResult endpoint

## 1.0.2

Release Date: May 2, 2023
Expand All @@ -21,6 +24,7 @@ Release Date: May 2, 2023
```
Fixed an issue with the JCUSERCERTPASS not being correctly passed into Windows devices when changed from default
```

#### FEATURES:

- JCUSERCERTPASS was not being correctly referenced when the device commands are generated resulting in certificates not being installed
Expand Down
2 changes: 1 addition & 1 deletion scripts/automation/Radius/Config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $CertType = "UsernameCn"
# Do not modify below
################################################################################

$UserAgent_ModuleVersion = '1.0.2'
$UserAgent_ModuleVersion = '1.0.3'
$UserAgent_ModuleName = 'PasswordlessRadiusConfig'
#Build the UserAgent string
$UserAgent_ModuleName = "JumpCloud_$($UserAgent_ModuleName).PowerShellModule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ fi
If ("Nuget" -notin `$PkgProvider.Name){
Install-PackageProvider -Name NuGet -Force
}
`$CurrentUser = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1]
`$CurrentUser = (Get-WMIObject -ClassName Win32_ComputerSystem).Username
if ( -Not [string]::isNullOrEmpty(`$CurrentUser) ){
`$CurrentUser = `$CurrentUser.Split('\')[1]
} else {
`$CurrentUser = `$null
}
if (`$CurrentUser -eq "$($user.userName)") {
if (-not(Get-InstalledModule -Name RunAsUser -errorAction "SilentlyContinue")) {
Write-Host "RunAsUser Module not installed, Installing..."
Expand Down Expand Up @@ -329,7 +334,11 @@ if (`$CurrentUser -eq "$($user.userName)") {
Throw "Cert was not installed"
}
} else {
Write-Host "Current logged in user, `$CurrentUser, does not match expected certificate user. Please ensure $($user.userName) is signed in and retry."
if (`$CurrentUser -eq `$null){
Write-Host "No users are signed into the system. Please ensure $($user.userName) is signed in and retry."
} else {
Write-Host "Current logged in user, `$CurrentUser, does not match expected certificate user. Please ensure $($user.userName) is signed in and retry."
}
# finally clean up temp files:
If (Test-Path "C:\Windows\Temp\$($user.userName)-client-signed.zip"){
Remove-Item "C:\Windows\Temp\$($user.userName)-client-signed.zip"
Expand Down

0 comments on commit f13cfcb

Please sign in to comment.