We have developed a custom authentication plugin for the RDP gateway according to Microsoft provided sample.
https://code.msdn.microsoft.com/windowsdesktop/Remote-Desktop-Gateway-517d6273
When installing our plugin on a fresh installation of RDP gateway we get an error during the connection (see below).
If we remove the default CAP configuration setup by the RDP installation Wizard and manually configuration a new one then connection succeeds.
How to fix that issue ?
thanks
------------
Details of the error are below:
The user "domain\user", on client computer "x.x.x.x", did not meet connection authorization policy requirements and was therefore not authorized to access the RD Gateway server. The authentication method used was: "Cookie" and connection protocol used: "HTTP".The following error occurred: "23003". (event ID 201)
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Microsoft-Windows-TerminalServices-Gateway" Guid="{4D5AE6A1-C7C8-4E6D-B840-4D8080B42E1B}" />
<EventID>201</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>2</Task>
<Opcode>30</Opcode>
<Keywords>0x4010000001000000</Keywords>
<TimeCreated SystemTime="2015-03-02T14:40:45.403913800Z" />
<EventRecordID>27</EventRecordID>
<Correlation ActivityID="{BEA53EF1-7BBF-4973-BA10-445A99070000}" />
<Execution ProcessID="3912" ThreadID="3028" />
<Channel>Microsoft-Windows-TerminalServices-Gateway/Operational</Channel>
<Computer>SAMU.corp.hamilton.com</Computer>
<Security UserID="S-1-5-20" />
</System>
- <UserData>
- <EventInfo xmlns="aag">
<Username>hamilton\fko1</Username>
<IpAddress>x.x.x.x</IpAddress>
<AuthType>Cookie</AuthType>
<Resource />
<ConnectionProtocol>HTTP</ConnectionProtocol>
<ErrorCode>23003</ErrorCode>
</EventInfo>
</UserData>
</Event>
Feg HID