Re: <authentication mode="Windows" /> Question

From: Craig (craig@compete.com.au)
Date: 10/24/02


From: "Craig" <craig@compete.com.au>
Date: Wed, 23 Oct 2002 17:28:05 -0700


Hi Mike

A couple of issues which messed me up a bit. Firstly I
needed to log off the network to pick up the new group.
Secondly I needed to be case sensitive which the
DOMAN\GroupName.

And a realted question, another user is also in the group
I set up (he has logged off and back onto the network);
when he connects to my machine to access the web site,
the IsInRole(DOMAIN\GroupName) returns false.

Do I need to do allow the DOMAIN\GroupName permission to
the physical web folder?

Craig

>-----Original Message-----
>Hi Craig
>
>It looks like what your are doing is corrrect, but
sometimes you can get
>caught out by the syntax of the string for the role you
are testing for.
>When you are looking for a domain based group
membership, you need to use a
>capitalised identity for the domain name. For example:
@"MYDOMAIN\mygroup"
>
>The text and case have to be identicle since the
comparisson is done via a
>hashtable and different cases in the test string will
result in different
>hash values.
>
>--
>Mike Shaw
>..NET Developer Group, UK
>
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>You assume all risk for your use. © 2002 Microsoft
Corporation. All rights
>reserved.
>
>"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
>
>
>.
>



Relevant Pages

  • RE: 802.1x, Computers, Wired Security
    ... client to use EAP-TLS. ... Authentication-Provider = Windows ... Wired 802.1X Authentication failed. ... Network Adapter: Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler ...
    (microsoft.public.windows.server.active_directory)
  • Re: GP Logon Script Fails on Wireless XP Clients
    ... I forgot that this is a Windows XP only setting. ... You could try taking a network trace to see what's going on. ... > Slow network connection timeout for user profiles ... >>What options do you have set on the Authentication Tab ...
    (microsoft.public.win2000.group_policy)
  • Re: PEAP user authentication failed - need help
    ... How to Setup Windows, Network, VPN & Remote Access on ... I set up a domain controller (Windows Server 2008), ... DHCP, NPS, AD certificate services and created ... authentication), it NEVER asks me to enter user credentials and there ...
    (microsoft.public.windows.server.networking)
  • Re: Network isolation: local logins ?
    ... Regarding the local user accounts, in Windows XP and Windows 2003, if the ... secured/isolation network using its configured IPsec-based authentication ... The credentials of the user are not evaluated when determining ... IP extends the core IKE functionality of machine authentication to also ...
    (microsoft.public.windows.server.networking)
  • Re: global .asa counting users
    ... "Mike D" wrote in message ... > I open alot of new IE windows and I have my homepage set ... > The homepage is behind authentication and it makes me ...
    (microsoft.public.inetserver.asp.general)