C# Class RDSFactor.Handlers.RDSHandler

Afficher le fichier Open project: oskarb/RDSFactor

Méthodes publiques

Méthode Description
Cleanup ( ) : void
HasValidLaunchWindow ( string username ) : bool
HasValidSession ( string username ) : bool
ProcessAccessRequest ( ) : void
ProcessAppLaunchRequest ( ) : void

Process the RDS specific App Launch request. These requests are sent when an app is clicked in RD Web. It's checked whether the session is still valid.In which case, a window is opened for the user, where we allow the user to connect through the gateway, an Accept-Access is returned and the RD Web launches the RDP client. NOTE: Requests contain the session GUID in the password attribute of the packet.

ProcessGatewayRequest ( ) : void

Process the request from the Network Policy Server in the RDS Gateway. These are sent when an RDP client tries to connect through the Gateway. Accept-Access is returned when the user has a * valid session; and a * valid app launch window The launch window is closed after this request.

ProcessRequest ( ) : void
RDSHandler ( RADIUSPacket packet ) : System

Private Methods

Méthode Description
Accept ( ) : void
Authenticate ( ) : SearchResult
CleanUsername ( string userName ) : string
LdapGetEmail ( SearchResult result ) : string
LdapGetNumberCleaned ( SearchResult result ) : string
ProcessChallengeResponse ( ) : void
TwoFactorChallenge ( SearchResult ldapResult ) : void

Method Details

Cleanup() public static méthode

public static Cleanup ( ) : void
Résultat void

HasValidLaunchWindow() public static méthode

public static HasValidLaunchWindow ( string username ) : bool
username string
Résultat bool

HasValidSession() public static méthode

public static HasValidSession ( string username ) : bool
username string
Résultat bool

ProcessAccessRequest() public méthode

public ProcessAccessRequest ( ) : void
Résultat void

ProcessAppLaunchRequest() public méthode

Process the RDS specific App Launch request. These requests are sent when an app is clicked in RD Web. It's checked whether the session is still valid.In which case, a window is opened for the user, where we allow the user to connect through the gateway, an Accept-Access is returned and the RD Web launches the RDP client. NOTE: Requests contain the session GUID in the password attribute of the packet.
public ProcessAppLaunchRequest ( ) : void
Résultat void

ProcessGatewayRequest() public méthode

Process the request from the Network Policy Server in the RDS Gateway. These are sent when an RDP client tries to connect through the Gateway. Accept-Access is returned when the user has a * valid session; and a * valid app launch window The launch window is closed after this request.
public ProcessGatewayRequest ( ) : void
Résultat void

ProcessRequest() public méthode

public ProcessRequest ( ) : void
Résultat void

RDSHandler() public méthode

public RDSHandler ( RADIUSPacket packet ) : System
packet RADIUSPacket
Résultat System