From: Laura Laura on
Try
TransportSettings2 instead of MsRdpClientTransportSettings2.

"Jeremy Wadsworth" wrote:

> Yes. I'm using Windows Vista Utlimate with SP1.
>
> Thanks,
> Jeremy
>
> "Munindra Das [MSFT]" wrote:
>
> > Just to make sure, are you using Vista SP1. This was added only in SP1.
> > --
> >
> > Thanks!
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "Jeremy Wadsworth" <JeremyWadsworth(a)discussions.microsoft.com> wrote in
> > message news:A622B46D-087A-4B38-AA67-2D4722B7B1D6(a)microsoft.com...
> > > Thank you for your reply. It appears you have understood me correctly.
> > > From
> > > what you have said, I should be able to populate the credentials, thus
> > > avoiding the TSG login popup. The trouble I am having is trying to set the
> > > appropriate properties that will populate the TSG login. Below is a basic
> > > example of what I'm working with. Note that this work as long as I don't
> > > try
> > > to populate the Gateway credentials.
> > >
> > > If i try to populate the GatewayDomain, GatewayUsername, or
> > > GatewayPassword,
> > > I get an error "MsRdpClient.MsRdpClientTransportSettings2 is null or not
> > > an
> > > object".
> > >
> > > <script type="text/javascript" language="javascript">
> > > var MsRdpClient = document.getElementById('MsRdpClient');
> > >
> > > function goRDP(pid, arg) {
> > > MsRdpClient.MsRdpClientShell.PublicMode = true;
> > > MsRdpClient.MsRdpClientShell.RdpFileContents = unescape(arg);
> > > MsRdpClient.authenticationlevel = 2;
> > > MsRdpClient.negotiatesecuritylayer = 1;
> > > MsRdpClient.promptforcredentials = 0;
> > > // MsRdpClient.MsRdpClientTransportSettings2.GatewayDomain = "tserver8";
> > > // MsRdpClient.MsRdpClientTransportSettings2.GatewayPassword = "user8";
> > > // MsRdpClient.MsRdpClientTransportSettings2.GatewayUsername = "pass8";
> > > }
> > > </script>
> > >
> > >
> > > Thanks,
> > >
> > > Jeremy
> > >
> > > "Munindra Das [MSFT]" wrote:
> > >
> > >> If I understand your question correctly, you have mstsc activeX control
> > >> loaded in your page and you want to pass the TSG credentials to it
> > >> control
> > >> using these APIs. If so, the answer is yes you can populate the
> > >> credentials
> > >> using these APIs and the mstsc will not pop the credUI for TSG
> > >> credentials
> > >> and use the supplied credentials to authenticate to TSG.
> > >>
> > >> I am not sure about the javascript page that you have mentioned. If it
> > >> doesn't
> > >> work, the reason could be that your page does not read these fields and
> > >> pass
> > >> them to the activeX control.
> > >>
> > >> Also, these fields will not work with the RDP file as the mstsc.exe does
> > >> not
> > >> read these fields and call the APIs against them.
> > >>
> > >> Please let me know if this answers your question.
> > >>
> > >> Thanks!
> > >>
> > >> --
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >> "Jeremy Wadsworth" <JeremyWadsworth(a)discussions.microsoft.com> wrote in
> > >> message news:72ACABD6-75C5-44BF-96F7-7C76FB07BB07(a)microsoft.com...
> > >> > I'm trying to figure out if it's possible to use the
> > >> > IMsRdpClientTransportSettings2 interface to prepopulate or bypass the
> > >> > client
> > >> > Gateway Login by setting the GatewayDomain, GatewayPassword, and
> > >> > GatewayUsername properties.
> > >> >
> > >> > Does anyone know if this can be done or if this interface is
> > >> > accessible?
> > >> > This doesn't work in the javascript of the page.
> > >> >
> > >> > MsRdpClient.MsRdpClientTransportSettings2.GatewayDomain =
> > >> > "mytsserver.com"
> > >>
> > >>
> >
> >