473,320 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

User Identity

Joe

I check for the NTLogin of a user by
Page.User.Identity.Name,

but when I put the app on the server the value for
Page.User.Identity.Name is ""

I had the <allow users="*/> attribute commented out on my
machine and had <deny users="?"/>

how do I do this on the server to get the user NTLogin
name

thanks
Nov 18 '05 #1
8 2196
Does your web site require authentication? If not, everyone is logging in as
anonymous.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in message
news:5a****************************@phx.gbl...

I check for the NTLogin of a user by
Page.User.Identity.Name,

but when I put the app on the server the value for
Page.User.Identity.Name is ""

I had the <allow users="*/> attribute commented out on my
machine and had <deny users="?"/>

how do I do this on the server to get the user NTLogin
name

thanks

Nov 18 '05 #2
Make sure you uncheck Anonymous access in IIS for your vitual directory.
Check Integrated Windows authenticaiton.

Add <authentication mode="Windows" /> to web.config.

I wouldn't mess with the <allow/deny users> until you can read the username.

HTH,
Greg

"Joe" <an*******@discussions.microsoft.com> wrote in message
news:5a****************************@phx.gbl...

I check for the NTLogin of a user by
Page.User.Identity.Name,

but when I put the app on the server the value for
Page.User.Identity.Name is ""

I had the <allow users="*/> attribute commented out on my
machine and had <deny users="?"/>

how do I do this on the server to get the user NTLogin
name

thanks

Nov 18 '05 #3
Joe

Thanks a lot guys, Everyone was logging in anonymously

I have 2 more questions and would appreciate if you guys
could answer

what happens when I make a setup and this is deployed on
the server.Is it anonymous access by default on the
server.

If so how can I authorize users in an intranet to access
the web page without the username/password dialog coming
up and at the same time get the NT Login of the user
Thanks for all your help

-----Original Message-----
Make sure you uncheck Anonymous access in IIS for your vitual directory.Check Integrated Windows authenticaiton.

Add <authentication mode="Windows" /> to web.config.

I wouldn't mess with the <allow/deny users> until you can read the username.
HTH,
Greg

"Joe" <an*******@discussions.microsoft.com> wrote in messagenews:5a****************************@phx.gbl...

I check for the NTLogin of a user by
Page.User.Identity.Name,

but when I put the app on the server the value for
Page.User.Identity.Name is ""

I had the <allow users="*/> attribute commented out on my machine and had <deny users="?"/>

how do I do this on the server to get the user NTLogin
name

thanks

.

Nov 18 '05 #4
> what happens when I make a setup and this is deployed on
the server.Is it anonymous access by default on the
server.
These permissions are managed by IIS. By default, web sites in IIS allow
anonymous access.
If so how can I authorize users in an intranet to access
the web page without the username/password dialog coming
up and at the same time get the NT Login of the user
Use Windows Integrated Authentication.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in message
news:5b****************************@phx.gbl...
Thanks a lot guys, Everyone was logging in anonymously

I have 2 more questions and would appreciate if you guys
could answer

what happens when I make a setup and this is deployed on
the server.Is it anonymous access by default on the
server.

If so how can I authorize users in an intranet to access
the web page without the username/password dialog coming
up and at the same time get the NT Login of the user
Thanks for all your help

-----Original Message-----
Make sure you uncheck Anonymous access in IIS for your

vitual directory.
Check Integrated Windows authenticaiton.

Add <authentication mode="Windows" /> to web.config.

I wouldn't mess with the <allow/deny users> until you

can read the username.

HTH,
Greg

"Joe" <an*******@discussions.microsoft.com> wrote in

message
news:5a****************************@phx.gbl...

I check for the NTLogin of a user by
Page.User.Identity.Name,

but when I put the app on the server the value for
Page.User.Identity.Name is ""

I had the <allow users="*/> attribute commented out on my machine and had <deny users="?"/>

how do I do this on the server to get the user NTLogin
name

thanks

.

Nov 18 '05 #5
Joe

Kevin,

Could you please point me to some examples/explain how I
can set Windows Integrate Authentication for my
application.

I can only see a check box for the same in IIS which is
ticked but the user still gets a username/password dialog

could you kindly explain the process

Thanks a lot for your help

Regards

Joeseph
-----Original Message-----
what happens when I make a setup and this is deployed on the server.Is it anonymous access by default on the
server.
These permissions are managed by IIS. By default, web

sites in IIS allowanonymous access.
If so how can I authorize users in an intranet to access the web page without the username/password dialog coming up and at the same time get the NT Login of the user
Use Windows Integrated Authentication.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in

messagenews:5b****************************@phx.gbl...

Thanks a lot guys, Everyone was logging in anonymously

I have 2 more questions and would appreciate if you guys could answer

what happens when I make a setup and this is deployed on the server.Is it anonymous access by default on the
server.

If so how can I authorize users in an intranet to access the web page without the username/password dialog coming up and at the same time get the NT Login of the user
Thanks for all your help

>-----Original Message-----
>Make sure you uncheck Anonymous access in IIS for your

vitual directory.
>Check Integrated Windows authenticaiton.
>
>Add <authentication mode="Windows" /> to web.config.
>
>I wouldn't mess with the <allow/deny users> until you

can read the username.
>
>HTH,
>Greg
>
>"Joe" <an*******@discussions.microsoft.com> wrote in

message
>news:5a****************************@phx.gbl...
>>
>> I check for the NTLogin of a user by
>> Page.User.Identity.Name,
>>
>> but when I put the app on the server the value for
>> Page.User.Identity.Name is ""
>>
>> I had the <allow users="*/> attribute commented out on
my
>> machine and had <deny users="?"/>
>>
>> how do I do this on the server to get the user

NTLogin >> name
>>
>> thanks
>
>
>.
>

.

Nov 18 '05 #6
Authentication method is in the Properties dialog of your web site in the
IIS snap-in. You need to disallow anonymous access, and use Windows
Integrated Authentication.

In the user's IE, in the Security tab of the Internet Options dialog,
clicking "Custom Level" will bring up a detailed dialog of settings. At the
bottom is "User Authentication." Set it to automatically log in with current
User Name and Password. This will stop the dialog from coming up, as long as
the user is logged into the domain that the server is using.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in message
news:5c****************************@phx.gbl...

Kevin,

Could you please point me to some examples/explain how I
can set Windows Integrate Authentication for my
application.

I can only see a check box for the same in IIS which is
ticked but the user still gets a username/password dialog

could you kindly explain the process

Thanks a lot for your help

Regards

Joeseph
-----Original Message-----
what happens when I make a setup and this is deployed on the server.Is it anonymous access by default on the
server.


These permissions are managed by IIS. By default, web

sites in IIS allow
anonymous access.
If so how can I authorize users in an intranet to access the web page without the username/password dialog coming up and at the same time get the NT Login of the user


Use Windows Integrated Authentication.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in

message
news:5b****************************@phx.gbl...

Thanks a lot guys, Everyone was logging in anonymously

I have 2 more questions and would appreciate if you guys could answer

what happens when I make a setup and this is deployed on the server.Is it anonymous access by default on the
server.

If so how can I authorize users in an intranet to access the web page without the username/password dialog coming up and at the same time get the NT Login of the user
Thanks for all your help
>-----Original Message-----
>Make sure you uncheck Anonymous access in IIS for your
vitual directory.
>Check Integrated Windows authenticaiton.
>
>Add <authentication mode="Windows" /> to web.config.
>
>I wouldn't mess with the <allow/deny users> until you
can read the username.
>
>HTH,
>Greg
>
>"Joe" <an*******@discussions.microsoft.com> wrote in
message
>news:5a****************************@phx.gbl...
>>
>> I check for the NTLogin of a user by
>> Page.User.Identity.Name,
>>
>> but when I put the app on the server the value for
>> Page.User.Identity.Name is ""
>>
>> I had the <allow users="*/> attribute commented out on my
>> machine and had <deny users="?"/>
>>
>> how do I do this on the server to get the user NTLogin >> name
>>
>> thanks
>
>
>.
>

.

Nov 18 '05 #7
Joe
Kevin,

I have made the changes accordingly, but what happens
when my application is deployed on a server to be
accessible for all the people in the intranet.

The dialog would come up for all the users.Is there a way
to bypass this.
-----Original Message-----
Authentication method is in the Properties dialog of your web site in theIIS snap-in. You need to disallow anonymous access, and use WindowsIntegrated Authentication.

In the user's IE, in the Security tab of the Internet Options dialog,clicking "Custom Level" will bring up a detailed dialog of settings. At thebottom is "User Authentication." Set it to automatically log in with currentUser Name and Password. This will stop the dialog from coming up, as long asthe user is logged into the domain that the server is using.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in messagenews:5c****************************@phx.gbl...

Kevin,

Could you please point me to some examples/explain how I can set Windows Integrate Authentication for my
application.

I can only see a check box for the same in IIS which is
ticked but the user still gets a username/password dialog
could you kindly explain the process

Thanks a lot for your help

Regards

Joeseph
>-----Original Message-----
>> what happens when I make a setup and this is deployed
on
>> the server.Is it anonymous access by default on the
>> server.
>
>These permissions are managed by IIS. By default, web

sites in IIS allow
>anonymous access.
>
>> If so how can I authorize users in an intranet to

access
>> the web page without the username/password dialog

coming
>> up and at the same time get the NT Login of the user
>
>Use Windows Integrated Authentication.
>
>--
>HTH,
>Kevin Spencer
>..Net Developer
>Microsoft MVP
>Big things are made up
>of lots of little things.
>
>"Joe" <an*******@discussions.microsoft.com> wrote in

message
>news:5b****************************@phx.gbl...
>>
>> Thanks a lot guys, Everyone was logging in
anonymously >>
>> I have 2 more questions and would appreciate if you

guys
>> could answer
>>
>> what happens when I make a setup and this is deployed on
>> the server.Is it anonymous access by default on the
>> server.
>>
>> If so how can I authorize users in an intranet to

access
>> the web page without the username/password dialog

coming
>> up and at the same time get the NT Login of the user
>>
>>
>> Thanks for all your help
>>
>>
>> >-----Original Message-----
>> >Make sure you uncheck Anonymous access in IIS for
your >> vitual directory.
>> >Check Integrated Windows authenticaiton.
>> >
>> >Add <authentication mode="Windows" /> to web.config. >> >
>> >I wouldn't mess with the <allow/deny users> until you >> can read the username.
>> >
>> >HTH,
>> >Greg
>> >
>> >"Joe" <an*******@discussions.microsoft.com> wrote in >> message
>> >news:5a****************************@phx.gbl...
>> >>
>> >> I check for the NTLogin of a user by
>> >> Page.User.Identity.Name,
>> >>
>> >> but when I put the app on the server the value for >> >> Page.User.Identity.Name is ""
>> >>
>> >> I had the <allow users="*/> attribute commented

out on
>> my
>> >> machine and had <deny users="?"/>
>> >>
>> >> how do I do this on the server to get the user

NTLogin
>> >> name
>> >>
>> >> thanks
>> >
>> >
>> >.
>> >
>
>
>.
>

.

Nov 18 '05 #8
Hi Joe,

You've got 2 choices: 1. Allow anonymous access. 2. Don't allow anonymous
access. If you want certain parts of the site to be only for intranet users,
I would suggest putting them on a separate web or sub-web (separate
application).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in message
news:5f****************************@phx.gbl...
Kevin,

I have made the changes accordingly, but what happens
when my application is deployed on a server to be
accessible for all the people in the intranet.

The dialog would come up for all the users.Is there a way
to bypass this.
-----Original Message-----
Authentication method is in the Properties dialog of

your web site in the
IIS snap-in. You need to disallow anonymous access, and

use Windows
Integrated Authentication.

In the user's IE, in the Security tab of the Internet

Options dialog,
clicking "Custom Level" will bring up a detailed dialog

of settings. At the
bottom is "User Authentication." Set it to automatically

log in with current
User Name and Password. This will stop the dialog from

coming up, as long as
the user is logged into the domain that the server is

using.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe" <an*******@discussions.microsoft.com> wrote in

message
news:5c****************************@phx.gbl...

Kevin,

Could you please point me to some examples/explain how I can set Windows Integrate Authentication for my
application.

I can only see a check box for the same in IIS which is
ticked but the user still gets a username/password dialog
could you kindly explain the process

Thanks a lot for your help

Regards

Joeseph

>-----Original Message-----
>> what happens when I make a setup and this is deployed on
>> the server.Is it anonymous access by default on the
>> server.
>
>These permissions are managed by IIS. By default, web
sites in IIS allow
>anonymous access.
>
>> If so how can I authorize users in an intranet to
access
>> the web page without the username/password dialog
coming
>> up and at the same time get the NT Login of the user
>
>Use Windows Integrated Authentication.
>
>--
>HTH,
>Kevin Spencer
>..Net Developer
>Microsoft MVP
>Big things are made up
>of lots of little things.
>
>"Joe" <an*******@discussions.microsoft.com> wrote in
message
>news:5b****************************@phx.gbl...
>>
>> Thanks a lot guys, Everyone was logging in anonymously >>
>> I have 2 more questions and would appreciate if you
guys
>> could answer
>>
>> what happens when I make a setup and this is deployed on
>> the server.Is it anonymous access by default on the
>> server.
>>
>> If so how can I authorize users in an intranet to
access
>> the web page without the username/password dialog
coming
>> up and at the same time get the NT Login of the user
>>
>>
>> Thanks for all your help
>>
>>
>> >-----Original Message-----
>> >Make sure you uncheck Anonymous access in IIS for your >> vitual directory.
>> >Check Integrated Windows authenticaiton.
>> >
>> >Add <authentication mode="Windows" /> to web.config. >> >
>> >I wouldn't mess with the <allow/deny users> until you >> can read the username.
>> >
>> >HTH,
>> >Greg
>> >
>> >"Joe" <an*******@discussions.microsoft.com> wrote in >> message
>> >news:5a****************************@phx.gbl...
>> >>
>> >> I check for the NTLogin of a user by
>> >> Page.User.Identity.Name,
>> >>
>> >> but when I put the app on the server the value for >> >> Page.User.Identity.Name is ""
>> >>
>> >> I had the <allow users="*/> attribute commented out on
>> my
>> >> machine and had <deny users="?"/>
>> >>
>> >> how do I do this on the server to get the user
NTLogin
>> >> name
>> >>
>> >> thanks
>> >
>> >
>> >.
>> >
>
>
>.
>

.

Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jesper Stocholm | last post by:
I have implemented role-based security within my ASP.Net application. However, it seems the role is not passed to the authentication ticket I create. I want to use it to display/hide some...
4
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: ...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
15
by: Tom Nowak | last post by:
I am writing a webapp in which a user is required to enter a login id and password on a login form. I have forms authenticaion coded in my web.config. Once the user is logged in, I want to use the...
3
by: Patrick Olurotimi Ige | last post by:
How can i send LOGON_USER or User.Identity.Name to the Database? I'm working on a survey which is intranet based with Windows Authentication. I can get the current user by calling LOGON_USER or...
0
by: jakobsgaard | last post by:
It is possible to Map a certificate to a Active Directory User Account from DotNet? Please provide an example. Best regards, Ejnar Jakobsgaard...
2
by: Abraham Andres Luna | last post by:
hello everyone, does anyone know why i can't access the HttpContext.Current.User.Identity.Name property in a .cs file? this is the index.aspx page: <%@ Page Language="C#" %> <script...
0
by: Daniel Knöpfel | last post by:
Hello On our asp.net 2.0 website we impersonate every request to the identity of the user logged in. This works this way: 1. user logs in, providing username, password 2. user is authenticated...
3
by: =?Utf-8?B?Q2hhcmxlc0E=?= | last post by:
hi folks, I've got XP pro service pack 2 VS 2005 TSE with ASP.net 2.0 and C# I'm doing an example from Stephen Walther's so far excellent book and he has a whole load of stuff to add the...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.