Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > LOGON_USER / NT Security

Reply
Thread Tools

LOGON_USER / NT Security

 
 
Ray at
Guest
Posts: n/a
 
      08-13-2003
Use integrated authentication and make sure your users access the site using
a domain with no .'s in it, i.e. http://intranet as opposed to
http://iisserver.yourdomain.com. IE will pass the user's logon credentials
to the server silently in the intranet zone (no .'s in domain), by default.

Ray at work

"Maria" <> wrote in message
news:...
> I'm trying to get the NT login id of a user on a web page without making

the
> user type it into a login box. I'm using the LOGON_USER server variable.
> The problem is, if the web page allows anonymous access, LOGON_USER

returns
> nothing. If the page is set to Basic Security, the NT login popup box

comes
> up, even though the user is already logged into the network, and HAS

access
> to this page. Moreover, if I try this on my PC instead of our webserver,

it
> works like I would expect. That is, when set to Basic Security, it does

NOT
> pop up a login box if the user is allowed to view the page, and LOGON_USER
> returns the userid. Is there some setting on the server I need to change?
> Or something else?
>
>



 
Reply With Quote
 
 
 
 
Maria
Guest
Posts: n/a
 
      08-13-2003
I'm trying to get the NT login id of a user on a web page without making the
user type it into a login box. I'm using the LOGON_USER server variable.
The problem is, if the web page allows anonymous access, LOGON_USER returns
nothing. If the page is set to Basic Security, the NT login popup box comes
up, even though the user is already logged into the network, and HAS access
to this page. Moreover, if I try this on my PC instead of our webserver, it
works like I would expect. That is, when set to Basic Security, it does NOT
pop up a login box if the user is allowed to view the page, and LOGON_USER
returns the userid. Is there some setting on the server I need to change?
Or something else?


 
Reply With Quote
 
 
 
 
Maria
Guest
Posts: n/a
 
      08-13-2003
I'm not sure what you mean by integrated authentication. When I tried using
the machine name of the webserver, it still didn't work. The URL looked
like this: http://servername/folder/file.asp.

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:...
> Use integrated authentication and make sure your users access the site

using
> a domain with no .'s in it, i.e. http://intranet as opposed to
> http://iisserver.yourdomain.com. IE will pass the user's logon

credentials
> to the server silently in the intranet zone (no .'s in domain), by

default.
>
> Ray at work
>
> "Maria" <> wrote in message
> news:...
> > I'm trying to get the NT login id of a user on a web page without making

> the
> > user type it into a login box. I'm using the LOGON_USER server

variable.
> > The problem is, if the web page allows anonymous access, LOGON_USER

> returns
> > nothing. If the page is set to Basic Security, the NT login popup box

> comes
> > up, even though the user is already logged into the network, and HAS

> access
> > to this page. Moreover, if I try this on my PC instead of our webserver,

> it
> > works like I would expect. That is, when set to Basic Security, it does

> NOT
> > pop up a login box if the user is allowed to view the page, and

LOGON_USER
> > returns the userid. Is there some setting on the server I need to

change?
> > Or something else?
> >
> >

>
>



 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      08-13-2003
I'm writing for Windows 2000/IIS 5:

IIS manager
Right click on the site or the directory
Click properties
Go to the Directory Security tab
Click the top Edit button (Anon access/authentication control)
Set Anonymous access to False
Set Integrated Windows authentication to True

Ray at work


"Maria" <> wrote in message
news:...
> I'm not sure what you mean by integrated authentication. When I tried

using
> the machine name of the webserver, it still didn't work. The URL looked
> like this: http://servername/folder/file.asp.
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:...
> > Use integrated authentication and make sure your users access the site

> using
> > a domain with no .'s in it, i.e. http://intranet as opposed to
> > http://iisserver.yourdomain.com. IE will pass the user's logon

> credentials
> > to the server silently in the intranet zone (no .'s in domain), by

> default.
> >
> > Ray at work
> >
> > "Maria" <> wrote in message
> > news:...
> > > I'm trying to get the NT login id of a user on a web page without

making
> > the
> > > user type it into a login box. I'm using the LOGON_USER server

> variable.
> > > The problem is, if the web page allows anonymous access, LOGON_USER

> > returns
> > > nothing. If the page is set to Basic Security, the NT login popup box

> > comes
> > > up, even though the user is already logged into the network, and HAS

> > access
> > > to this page. Moreover, if I try this on my PC instead of our

webserver,
> > it
> > > works like I would expect. That is, when set to Basic Security, it

does
> > NOT
> > > pop up a login box if the user is allowed to view the page, and

> LOGON_USER
> > > returns the userid. Is there some setting on the server I need to

> change?
> > > Or something else?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Request.ServerVariables("Logon_User") T. ASP .Net 7 04-28-2011 06:08 PM
Request.servervariable("Logon_User") giving problems Amitava Bardhan ASP .Net 0 05-17-2005 03:05 PM
Request.Servervariables("Logon_User") giving problem Amitava Bardhan ASP .Net 1 05-17-2005 02:58 PM
Getting LOGON_USER in a textbox Patrick Olurotimi Ige ASP .Net 9 03-11-2005 07:33 AM
using logon_user =?Utf-8?B?SGVsbWk=?= ASP .Net 3 01-23-2004 05:06 PM



Advertisments