Re: tcl and windows authentication...



Michael Schlenker schrieb:
Volker Hetzer schrieb:
Eckhard Lehmann schrieb:
Volker Hetzer wrote:
How do I authenticate this? Our users have logged on to our intranet,
which uses domain (kerberos) authentication I've been told.
For TLS/SSL see the dqkit announcement today, it includes openssl self contained...

For the other parts, i don't really know what i'm talking about, so maybe its totally off track:
For user authentication you can perhaps use something like the SASL stuff from tcllib in combination with your kerberos tokens. Take a look at some of the code in the tcllib http module, maybe you can use it as a start.
I think I got it solved. Windows has a special http api, called WinHTTP.
That in turn can be accessed using a COM component called WinHttpRequest.
This component has it all built in and I've just downloaded a very small
jscript from the mickeysoft site where I only had to insert one line of
code for it to authenticate itself against one of our intranet servers.
If the tcom package bears with me on this one someone ought to buy the
activestate guys a beer.

Btw, here is the jscript:
function getText(strURL)
{
var strResult;
try
{
// Create the WinHTTPRequest ActiveX Object.
var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
// Create an HTTP request.
var temp = WinHttpReq.Open("GET", strURL, false);
////////////////////////////////////////////////////////////////////////
//This is the important bit in case winhttp can't figure out the
//proxy settings (which it normally can't).
WinHttpReq.SetautoLogonPolicy(0);
////////////////////////////////////////////////////////////////////////
// Send the HTTP request.
WinHttpReq.Send();
// Retrieve the response text.
WScript.Echo( WinHttpReq.Status + " " + WinHttpReq.StatusText);
strResult = WinHttpReq.ResponseText;
WScript.Echo("Normal");
}
catch (objError)
{
WScript.Echo("Error");
strResult = objError + "\n"
strResult += "WinHTTP returned error: " +
(objError.number & 0xFFFF).toString() + "\n\n";
strResult += objError.description;
}
// Return the response text.
return strResult;
}

WScript.Echo(getText("http://myintranetwebsite.whatever/";));

I haven't got the time for the tcom setup right now but this ought to show
how it's supposed to go.

Lots of Greetings!
Volker
.



Relevant Pages

  • Re: tcl and windows authentication...
    ... which uses domain (kerberos) authentication I've been told. ... For user authentication you can perhaps use something like the SASL ... Windows has a special http api, called WinHTTP. ... strResult = WinHttpReq.ResponseText; ...
    (comp.lang.tcl)
  • Re: Performance Problems with Probing
    ... anonymous authentication to improve your Asp.net application performance. ... not force all the client customer browserto do anything. ... code parsing, Html code rendering and Html code client parsing, but not the ... HTTP request, so you may pay more attention to improve the application ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Call a WebService from VB6 and using integrated windows authentica
    ... object will allow you to do NTLM and other forms of authentication. ... Below is a simple example of interfacing PocketSoap with WinHTTP. ... I want to call a .NET Webservice from my VB6 application. ...
    (microsoft.public.vb.6.webdevelopment)
  • Re: this is a port scan, right?
    ... The long authentication line gives it away. ... with the authentication line of an http request. ... on the open internet. ... or be running a web server, ...
    (comp.security.misc)
  • Re: this is a port scan, right?
    ... The long authentication line gives it away. ... with the authentication line of an http request. ... on the open internet. ... or be running a web server, ...
    (comp.os.linux.networking)