Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:17 PM
Cas
Guest
 
Posts: n/a
Default need remote_user servervariable

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


  #2  
Old July 19th, 2005, 02:17 PM
Steven Burn
Guest
 
Posts: n/a
Default Re: need remote_user servervariable

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...[color=blue]
> Hi,
>
> I have an intranet application running on windows 2000 server with IIS[/color]
5.0,[color=blue]
> 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
>
>[/color]


  #3  
Old July 19th, 2005, 02:17 PM
Cas
Guest
 
Posts: n/a
Default Re: need remote_user servervariable

Hi,

thanks for replying, but
request.servervariables("REMOTE_ADDR") gives the local IP of that computer
and not the logon of the user...



"Steven Burn" <pvt@noyb.com> wrote in message
news:epUu2dabEHA.3096@tk2msftngp13.phx.gbl...[color=blue]
> 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...[color=green]
> > Hi,
> >
> > I have an intranet application running on windows 2000 server with IIS[/color]
> 5.0,[color=green]
> > but there is no domain. The users use workstation windows 2000 and log[/color][/color]
on[color=blue][color=green]
> > locally. I need the logon of the users of our LAN in the application, so[/color][/color]
i[color=blue][color=green]
> > 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
> >
> >[/color]
>
>[/color]


  #4  
Old July 19th, 2005, 02:17 PM
Rob Collyer
Guest
 
Posts: n/a
Default Re: need remote_user servervariable

"Steven Burn" <pvt@noyb.com> wrote in
news:epUu2dabEHA.3096@tk2msftngp13.phx.gbl:
[color=blue]
> 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...[color=green]
>> Hi,
>>
>> I have an intranet application running on windows 2000 server with
>> IIS[/color]
> 5.0,[color=green]
>> 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
>>
>>[/color]
>
>
>[/color]

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 !
  #5  
Old July 19th, 2005, 02:17 PM
Cas
Guest
 
Posts: n/a
Default Re: need remote_user servervariable

Thanks


"Rob Collyer" <webforumz@webforumz.com> wrote in message
news:Xns952BC845C8D16webforumzwebforumzco@217.32.2 52.50...[color=blue]
> "Steven Burn" <pvt@noyb.com> wrote in
> news:epUu2dabEHA.3096@tk2msftngp13.phx.gbl:
>[color=green]
> > 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...[color=darkred]
> >> Hi,
> >>
> >> I have an intranet application running on windows 2000 server with
> >> IIS[/color]
> > 5.0,[color=darkred]
> >> 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
> >>
> >>[/color]
> >
> >
> >[/color]
>
> 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 ![/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles