Re: username and computer name in vbscript/asp/java/wsh? by okanok_man
okanok_man
Fri Aug 29 12:08:24 CDT 2003
Thanks, I had a feeling that this was the only way I could accomplish
this. To accomplish this I think I need to work with my sys admin's a
little more. Thanks for the help!
-Jeremy
"Sean \(Kashi\) McGilloway" <noreplies@wscd.com> wrote in message news:<bilmcp$a4chk$1@ID-202586.news.uni-berlin.de>...
> If you have setup your website to use anonymous authentication then you're
> right, server variables are of little use. If this web site is an internal
> one hosted on IIS for use by employees with domain accounts then you can
> disable anonymous access, enable integrated authentication, and those
> variables will populate.
>
> There's lots of potential problems with this system that might need working
> out, but I've used it at several organizations for intranet-type sites and
> it works fine.
>
> K
>
>
> "Jeremy" <okanok_man@hotmail.com> wrote in message
> news:3a156897.0308261336.b361ea0@posting.google.com...
> > Bryan, thanks for the quick reply, but I have tried server variables
> > and they do not work for me. Here are all of the ones that I tried:
> >
> > Returns Nothing: <%=Request.ServerVariables("REMOTE_USER")%> <br>
> > Returns Nothing: <%=Request.ServerVariables("LOGON_USER")%> <br>
> > Returns IP: <%=Request.ServerVariables("REMOTE_HOST")%><br>
> > Returns IP: <%=Request.ServerVariables("REMOTE_ADDR")%><br>
> > Returns Nothing: <%=Request.ServerVariables("AUTH_USER")%><br>
> > Returns Nothing: <%=Request.ServerVariables("LOCAL_USER")%><br>
> > Returns IP: <%=Request.ServerVariables("LOCAL_ADDR")%><br>
> >
> > I believe that there is a setting on IIS that will allow all of these
> > to work, but it also ends up compromising some security. And anyway, I
> > can't get within 50 feet of the webserver that this page is running
> > on. Any other ideas? Thanks
> >
> > -Jeremy
> >
> > "Bryan Martin" <spam@ahwayside.com> wrote in message
> news:<O77mJJ$aDHA.2016@TK2MSFTNGP10.phx.gbl>...
> > > Request.ServerVariables
> > >
> > > Use the RemoteHost and RemoteUser
> > >
> > > "Jeremy" <okanok_man@hotmail.com> wrote in message
> > > news:3a156897.0308260719.6fe5d257@posting.google.com...
> > > > Hi, I have seen this topic come up many times but have never really
> > > > seen a concise answer to the problem. Basically what I have is an asp
> > > > page that is using ado to do some database queries. I have an
> > > > activity log table in my database that I would also like to update
> > > > when certain events are triggered on the webpage. In this activity
> > > > log I wanted to have the network username and the computer name of the
> > > > person that was using the webpage. I thought VBScript would be best
> > > > for this because it runs client-side but I have not found a solution
> > > > yet. Though this webpage will be running on my company's intranet, we
> > > > are a company of 6000 and I have absolutely NO control over the server
> > > > it will be running on. Any help would be awesome. Thanks!
> > > >
> > > > -Jeremy