How to get the login from IIS in C#

From: DJe (dje@perso.be)
Date: 07/29/02


From: "DJe" <dje@perso.be>
Date: Mon, 29 Jul 2002 10:09:29 -0700


Hi all!

I made my webconf like this :
<authentication mode="Forms">
        <forms name="blabla!!!" LoginUrl="AccessOK.aspx"/>
</authentication>
<authorization>
        <deny users="?"/>
</authorization>

So i need to make the cookie. But i'm asking a login from
windows under IIS...
(under IIS right click, properties, secure directory,
uncheck the first checkbox and check the last one - Anonym
access and Integrated Win authentification -> sorry for
the spelling my win is in french)

I'm asking this login from Windows(NT PDC) because it's
for a LAN...And it should be more easy to manage than make
a User DB...

There is a couple of hours, i'm looking to solve this
problem.

Is it possible to take it under C#?

If someone can help me. Thank you!



Relevant Pages

  • Re: Can login domain be set to a default?
    ... need for specifying a login domain. ... accounts of the IIS box (and the login process needs a way to ... cannot specify a default domain for Windows integrated authentication ... > The internal domain for the three servers is different than the web site ...
    (microsoft.public.windows.server.security)
  • Re: Basic Authentication fails with Error 401.2 where Integrated s
    ... The password dialog is supposed to appear for Basic authentication ... Thinking more esoterically now -- what are the login rights assigned ... IIS uses a specific login type, ... account created has full permissions for the folder and the file that's in it. ...
    (microsoft.public.inetserver.iis.security)
  • RE: A little problem with Forms authentication :-(
    ... I'm using forms authentication and the user is getting authenticated no ... should be redirected to the login page. ... I've set the time out for the cookie to the test value of 1 ... redirect from login bit because as I understand it, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Forms authentication cookie handling question (C#)
    ... programmatically generate forms authentication ticket and set it in ASP.NET ... You use the Login control's "Authentication" event to do the user ... LoginControl's default code logic to generate authentication cookie. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms Authentication Name property
    ... you specify the name to be used for the authentication ... login page, then this can work. ... A cookie is saved by the BROWSER and ... The BROWSER chooses ...
    (microsoft.public.dotnet.framework.aspnet.security)