Skip to content

Add RDP session launcher, fix get-requestable-account - #105

Merged
petrsnd merged 3 commits into
OneIdentity:mainfrom
petrsnd:feature/rdp-session-launcher
Jun 29, 2026
Merged

petrsnd merged 3 commits into
OneIdentity:mainfrom
petrsnd:feature/rdp-session-launcher

Conversation

@petrsnd

@petrsnd petrsnd commented Jun 29, 2026

Copy link
Copy Markdown
Member
  • New: start-access-request-rdp-session.sh — launches xfreerdp with
    InitializeSession .rdp file (supports -x, -k, -B flags)
  • Fix: get-requestable-account.sh — replace deprecated Me/AccessRequestAssets
    with Me/RequestEntitlements (broken since v4)
  • Bump version to 8.3.1

petrsnd added 3 commits June 29, 2026 10:33
Introduce start-access-request-rdp-session.sh which calls InitializeSession
   on an access request and launches an RDP client with the returned .rdp file.

   - Default client: xfreerdp (v2); override with -x
   - -k flag adds /cert:ignore for xfreerdp/xfreerdp3
   - xfreerdp3 gets /p: /d: to suppress interactive credential prompts
   - Secure temp file created before InitializeSession (umask 0077, mode 0600)
   - EXIT/INT/TERM/HUP trap cleans up temp file
   - GET state check is diagnostic; InitializeSession error is authoritative
   - -B CA bundle uses bash arrays to handle paths with spaces
   - Validates AccessRequestType is RemoteDesktop (rejects RemoteDesktopApplication)

   Tested end-to-end against live SPP/SPS with xfreerdp and xfreerdp3.
   Replace deprecated Me/AccessRequestAssets endpoint (returns error 60379 in
   v4) with a single call to Me/RequestEntitlements. Also fixes a $Id/$Ids typo
   that caused the entitlements query to return unfiltered results.

   The output format is unchanged: AssetId, AssetName, NetworkAddress,
   PlatformDisplayName, AccountId, AccountDomainName, AccountName,
   AccessRequestType — matching safeguard-ps Get-SafeguardRequestableAccount.
@petrsnd
petrsnd requested a review from a team as a code owner June 29, 2026 16:54
@petrsnd
petrsnd merged commit 55aa2ea into OneIdentity:main Jun 29, 2026
2 checks passed
@petrsnd
petrsnd deleted the feature/rdp-session-launcher branch June 29, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant