FreeRDP/FreeRDP — pull request #850 by awakecoding (2012-12-13 04:58:26+00:00)
Title: TS Gateway Support (working!)

Working TS Gateway Support

It *works*, but there are still many known issues and various stability improvements to be done.

Known issues:

Sometimes using HTTP/ as the SPN in NTLMv2 auth breaks connectivity, yet this is what I've observed in most cases with mstsc. I have no idea how to identify the proper SPN which is not always the same, and I have a ticket open with Microsoft to investigate this. As a workaround for now, disable NTLMv2 authentication, but this seems to lead to other issues.

Certain servers will throw a RPC_S_INVALID_TAG error during the connection sequence, I still haven't figured that one out. The same servers appear to be affected by the NTLMv2 authentication issue.

There seems to be some race conditions in the code which I haven't figured out, especially in the connection sequence. When running through valgrind or through a debugger, the code is much less stable than when running without such tools. When running without any debugging, it is usable.