I want to authenticate user on domain XXX with IIS and then provide this
information to ASP page, how can I do that?

Meaning that I could provide authentication from domain and keep up a log
who has logged into the page and say posted a form.

Thanks for the help.

Re: IIS+authentication information into VBScript? by Michael

Michael
Tue Feb 10 20:34:08 CST 2004

Nico Leiska wrote:
> I want to authenticate user on domain XXX with IIS and then provide
> this information to ASP page, how can I do that?


Turn *off* anonymous access and turn *on* authenticated access
(integrated/basic/kereros).

Then use Request.ServerVariables("AUTH_USER") to get the user account name
in "domainname\username" format...



>
> Meaning that I could provide authentication from domain and keep up a
> log who has logged into the page and say posted a form.
>
> Thanks for the help.

--
Michael Harris
Microsoft.MVP.Scripting

Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/technet/scriptcenter/default.asp
Download in HTML Help format (searchable and indexed)
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en


Re: IIS+authentication information into VBScript? by Nico

Nico
Wed Feb 11 05:18:43 CST 2004

> Turn *off* anonymous access and turn *on* authenticated access
> (integrated/basic/kereros).
>
> Then use Request.ServerVariables("AUTH_USER") to get the user account name
> in "domainname\username" format...

Thanks a bunch, Michael, Again :)

However it does not show the domain if i fetch it into a string variable :/
I think I'll need the list for servervariables and other stuff to avoid
simple questions as this one in the future :/



Re: IIS+authentication information into VBScript? by Michael

Michael
Wed Feb 11 21:08:36 CST 2004

> ... I think I'll need the list for servervariables and other
> stuff to avoid simple questions as this one in the future :/

Here's a simple ASP page I use to dump *all* server variables...

===servervars.asp===

<html>
<body>
<table width="100%" border="1" style="font:x-small verdana" >
<tr><td><b>server variable</b></td>
<td><b>value</b></td></tr>
<% for each strkey in request.servervariables %>
<tr><td><%=strkey %></td>
<td><%=request.servervariables(strkey) & "&nbsp;" %></td></tr>
<% next %>
</table>
</body>
</html>





--
Michael Harris
Microsoft.MVP.Scripting

Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/technet/scriptcenter/default.asp
Download in HTML Help format (searchable and indexed)
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en