Re: need remote_user servervariable by Rob
Rob
Mon Jul 19 13:39:46 CDT 2004
"Steven Burn" <pvt@noyb.com> wrote in
news:epUu2dabEHA.3096@tk2msftngp13.phx.gbl:
> Change
>
> lo=request.servervariables("remote_user")
>
> to
>
> lo=request.servervariables("REMOTE_ADDR")
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
>
> "Cas" <fhffh@rt.sp> wrote in message
> news:#Jiy6WabEHA.2944@TK2MSFTNGP11.phx.gbl...
>> Hi,
>>
>> I have an intranet application running on windows 2000 server with
>> IIS
> 5.0,
>> but there is no domain. The users use workstation windows 2000 and
>> log on locally. I need the logon of the users of our LAN in the
>> application, so i did:
>> lo=request.servervariables("remote_user"), but it's empty.
>> I tried all of them with this:
>> <% for each a in request.servervariables %>
>> <p>
>> <% = a %>
>> <% response.write(" ") %>
>> <% response.write(request.servervariables(a)) %>
>> <p>
>> <%next%>
>>
>> and i saw that 'logon_user' also was empty.
>>
>> Must there be a domain defined and must the users logs on that domain
>> in order to use 'remote_user' or 'logon_user'?
>>
>> Thanks again
>> Cas
>>
>>
>
>
>
Even better....
Set up an account for each user on the webserver....
next, disable anonymous access...
Then, when you hit the site, it wants a user / pass!
--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !