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

From: Craig (craig@compete.com.au)
Date: 11/01/02


From: "Craig" <craig@compete.com.au>
Date: Thu, 31 Oct 2002 15:26:06 -0800


Hi Mike

The site appears to be working now. I ended up copying
the application to a web server on the network instead of
hosting it from my local development machine.

I still don't know why it showed any user not in the NT
group as DOMAIN\Administrator when a user browsed to my
local machine for the site.

>-----Original Message-----
>Hi Craig
>
>I'm concerned about this as it should be like that! For
testing purposes,
>can I suggest that you turn off Windows Integrated
Authnetication and turn
>on Basic. This will force the dialog to be presented to
the user on the
>remote machine to enter their credentials and you will
be able to determine
>if there is a problem with the application or with
configuration elsewhere.
>
>--
>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:ff7801c27e12$bbf9da20$2ae2c90a@phx.gbl...
>Hi Mike
>
>Thanks for replying. Ok, when I log onto the site my
>DOMAIN\UserName appears, when anyone else logs onto the
>site DOMAIN\Administrator appears. MACHINE\ASPNET has
>permissions to the site virutal directory.
>
>Anonymous access is unchecked for this vsite application.
>
>Craig
>
>
>
>
>>-----Original Message-----
>>Hi Craig
>>
>>Because you are not impersonating, you will not need to
>change any of the
>>access permissions - all ACL checks will be against the
>account the asp.net
>>worker process is using.
>>
>>Is the name of the WindowsIdentity as you expect when
>the other user
>>connects to your site? You may need to check the IIS
>vroot of your
>>application's security configuration has the Anonymous
>option unchecked.
>>
>>--
>>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:59de01c27af4$38409280$39ef2ecf@TKMSFTNGXA08...
>>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: <authentication mode="Windows" /> Question
    ... Hi Mike ... permissions to the site virutal directory. ... confers no rights. ... I have set the virtual web authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: running with different credentials.
    ... > The program should be able to run properly if the user had Power User ... (Need to be logged in as an admin or a user with admin rights) ... Mike H ...
    (microsoft.public.windowsxp.newusers)
  • Re: Help
    ... >> Thanks Mike for the response, but it is a nonworkable solution. ... You paid for ONE copy/license of Windows XP which is valid for use on ONE ... This posting is provided "AS IS" with no warranties, and confers no rights ... >> You cannot use the same copy/license to install to more then one PC it is>> already installed on another machine. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: OT: Political
    ... If you think such a compromise can be ... >> about equal rights. ... Mike. ... In this country "marriage" is defined as between one man and one ...
    (rec.arts.dance)
  • Re: Wireless clients, 2 SSIDs and SBS - need recommendations
    ... Mike> Hadn't really thought of a separate IP network. ... You could buy or build a dedicated firewall, ... filtering rule set that only allows access from the guest network to ...
    (microsoft.public.windows.server.sbs)