Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access to proxy credentials

22 views
Skip to first unread message

Pablo J. Royo

unread,
Dec 14, 2005, 6:28:02 AM12/14/05
to
Hello:

I have an ActiveX loaded from some web pages in a web server that must open
an outgoing TCP socket connection to a different server (not a web server)
for timestamping purposes.
To access web pages I must use a proxy who asks for authentication.
Now I´m doing my own proxy authentication asking for proxy password when I
open the socket.

So I´d like to know if it´s possible this outgoing connection to reuse the
same proxy credentials used by first web connection, so that user doesn´t
have to introduce proxy password two times, one for accessing the web server
and other to stablish the socket connection.
I´ve been looking CredUIPromptForCredentials function and similars.

Thank you very much.


Eugene Gershnik

unread,
Dec 14, 2005, 12:47:59 PM12/14/05
to
Pablo J. Royo wrote:
> Hello:
>
> I have an ActiveX loaded from some web pages in a web server that
> must open an outgoing TCP socket connection to a different server
> (not a web server) for timestamping purposes.
> To access web pages I must use a proxy who asks for authentication.
> Now I惴 doing my own proxy authentication asking for proxy password

> when I open the socket.
>
> So I悲 like to know if it愀 possible this outgoing connection to

> reuse the same proxy credentials used by first web connection, so
> that user doesn愒 have to introduce proxy password two times, one for

> accessing the web server and other to stablish the socket connection.
> I扉e been looking CredUIPromptForCredentials function and similars.


Try CredRead with the proxy as the target name. If it doesn't work then
there is no stored credential for the proxy and you will have to prompt the
user ;-(


--
Eugene
http://www.gershnik.com

0 new messages