Re: <authentication mode="Windows" /> Question
From: Craig (craig@compete.com.au)
Date: 10/24/02
- Next message: Pierre Greborio: "Re: What's the difference between <identity> and <processModel>?"
- Previous message: Jay Warmack: "Re: How do I give ASP.NET process network credentials?"
- In reply to: Jimco Add-ins: "Re: <authentication mode="Windows" /> Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Craig" <craig@compete.com.au> Date: Wed, 23 Oct 2002 22:34:31 -0700
I allow authenicated users. I do not allow anonymous
users. Interesting thing is, from my machine where the
application is running, the windows principal is
DOMAIN\UserName. If I browse to my machine from another
computer on the network with a different login, the
window principal Identity.User.Name is
DOMAIN\Administrator. I was expecting it to be the
DOMAIN\UserName not the administrator of the domain!
Any ideas?
>-----Original Message-----
>Are you disallowing non-authenticated users? If you are
allowing anonymous,
>you likely aren't going to get what you expect here.
>
>--
>
>Jimco Add-ins
>---------------------------------------------------------
----------
>http://www.jimcoaddins.com
>FREE Add-ins and Utilities for FrontPage
>---------------------------------------------------------
----------
>Secure pages with ASP!
>Read our most recent edition of Insights
>---------------------------------------------------------
----------
>
>
>
>"Craig" <craig@compete.com.au> wrote in message
>news:b41801c27a3a$77dc18c0$35ef2ecf@TKMSFTNGXA11...
>> Hi
>>
>> I have a intranet web app where I need to check the
role
>> information of the windows user. I have set up a role
in
>> the domain and added me, a domain user to it. When I
>> execute the IsInRole() method, the return value is
>> false.
>>
>> The intention is to allow all authenicated users to
>> access the site, users who are in the specified domain
>> role have access to admin type features of the site.
>>
>> Here is my sample code for the page:
>>
>> WindowsPrincipal wp = (WindowsPrincipal)
>> HttpContext.Current.User;
>> if(wp.IsInRole("myDomainRole")) {
>> // user in role
>> }
>>
>> ---
>>
>> Here is the relevant web.config section:
>>
>> <authentication mode="Windows" />
>> <identity impersonate="false" />
>>
>> In machine.config, I have left the processModel as is -
>> default.
>>
>> ---
>>
>> In IIS, I have set the virtual web authentication
methods
>> to 'only' Integrate Windows authenication, the other
>> checkboxes are unchecked.
>>
>> I would greatly appreciate any help in configuring
this,
>> as I have tired all sorts of ways to make this work.
>>
>> Regards
>>
>> Craig
>
>
>.
>
- Next message: Pierre Greborio: "Re: What's the difference between <identity> and <processModel>?"
- Previous message: Jay Warmack: "Re: How do I give ASP.NET process network credentials?"
- In reply to: Jimco Add-ins: "Re: <authentication mode="Windows" /> Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|