ASP.net web site authentication

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASP.net web site authentication

    I have an ASP.net web site that accesses a COM object remotely, but I have
    to use the 'basic authentication' and not 'Integrated Windows authentication',
    else I get an access denied error.



    The web.config has



    <authentication mode="Windows" />

    <identity impersonate="true"/>





    This is the code I use for creating the COM object





    Type t = Type.GetTypeFromProgID("Service.myPorgID.1", "RemoteServer", true);

    if ( t != null )

    {

    iCs = (myPorgID) Activator.CreateInstance(t);

    }

    else

    {

    iCs = null;

    }



    I like this work in both ways 'basic authentication' and 'Integrated Windows
    authentication'.



    I am using IIS5, the remote service is a 'XP SP2' and the web site is on a
    windows 2000 server, all in same domain.



    Thanks for the help



    Gareth



    Gareth Guest

  2. Similar Questions and Discussions

    1. Need help with new site (password authentication)
      I'm currently working on a new tennis video magazine site. I'm not having any trouble with the video, but the login page is a nightmare for me. I'm...
    2. Authentication between site and its virtual directory
      I have a site that uses FormsAuthentication. I have a virtual directory on this site, that is configured as a vitrual application and has it's own...
    3. ASP.NET Site/Webservice and Windows/Form authentication
      Hi All I have an ASP.NET site which runs using Windows(NTLM) authentication over SSL. I have a webservice where a vendor is only able to call...
    4. site server membership authentication with ASP.NET
      Am using Site Server membership authentication at the IIS level and then trying to access an ASP.NET application. The issue is i am not able to get...
    5. Forms Authentication from another site
      A lot of the documentation in MSDN mentions in passing that it would be a good idea to place the login page on an SSL secure site. However, when I...
  3. #2

    Default Re: ASP.net web site authentication

    If you want to use IWA, you will need Kerberos delegation as well. A Google
    search should turn up many hits in this newsgroup and in the the MS kbase.

    Joe K.

    "Gareth" <gareth@donotsend.com> wrote in message
    news:%23pXqouJJFHA.3340@TK2MSFTNGP14.phx.gbl...
    >I have an ASP.net web site that accesses a COM object remotely, but I have
    >to use the 'basic authentication' and not 'Integrated Windows
    >authentication', else I get an access denied error.
    >
    >
    >
    > The web.config has
    >
    >
    >
    > <authentication mode="Windows" />
    >
    > <identity impersonate="true"/>
    >
    >
    >
    >
    >
    > This is the code I use for creating the COM object
    >
    >
    >
    >
    >
    > Type t = Type.GetTypeFromProgID("Service.myPorgID.1", "RemoteServer",
    > true);
    >
    > if ( t != null )
    >
    > {
    >
    > iCs = (myPorgID) Activator.CreateInstance(t);
    >
    > }
    >
    > else
    >
    > {
    >
    > iCs = null;
    >
    > }
    >
    >
    >
    > I like this work in both ways 'basic authentication' and 'Integrated
    > Windows authentication'.
    >
    >
    >
    > I am using IIS5, the remote service is a 'XP SP2' and the web site is on a
    > windows 2000 server, all in same domain.
    >
    >
    >
    > Thanks for the help
    >
    >
    >
    > Gareth
    >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: ASP.net web site authentication

    Or leave it as basic, and use SSL/HTTPS to encrypt the data on the wire.

    --

    - Paul Glavich
    ASP.NET MVP
    ASPInsider ([url]www.aspinsiders.com[/url])


    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:uhJDM5LJFHA.2476@TK2MSFTNGP12.phx.gbl...
    > If you want to use IWA, you will need Kerberos delegation as well. A
    Google
    > search should turn up many hits in this newsgroup and in the the MS kbase.
    >
    > Joe K.
    >
    > "Gareth" <gareth@donotsend.com> wrote in message
    > news:%23pXqouJJFHA.3340@TK2MSFTNGP14.phx.gbl...
    > >I have an ASP.net web site that accesses a COM object remotely, but I
    have
    > >to use the 'basic authentication' and not 'Integrated Windows
    > >authentication', else I get an access denied error.
    > >
    > >
    > >
    > > The web.config has
    > >
    > >
    > >
    > > <authentication mode="Windows" />
    > >
    > > <identity impersonate="true"/>
    > >
    > >
    > >
    > >
    > >
    > > This is the code I use for creating the COM object
    > >
    > >
    > >
    > >
    > >
    > > Type t = Type.GetTypeFromProgID("Service.myPorgID.1", "RemoteServer",
    > > true);
    > >
    > > if ( t != null )
    > >
    > > {
    > >
    > > iCs = (myPorgID) Activator.CreateInstance(t);
    > >
    > > }
    > >
    > > else
    > >
    > > {
    > >
    > > iCs = null;
    > >
    > > }
    > >
    > >
    > >
    > > I like this work in both ways 'basic authentication' and 'Integrated
    > > Windows authentication'.
    > >
    > >
    > >
    > > I am using IIS5, the remote service is a 'XP SP2' and the web site is on
    a
    > > windows 2000 server, all in same domain.
    > >
    > >
    > >
    > > Thanks for the help
    > >
    > >
    > >
    > > Gareth
    > >
    > >
    > >
    >
    >

    Paul Glavich [MVP ASP.NET] Guest

  5. #4

    Default Re: ASP.net web site authentication

    Thanks for the help I have used the Kerberos delegation.

    Gareth.


    "Paul Glavich [MVP ASP.NET]" <glav@aspalliane.com-NOSPAM> wrote in message
    news:urPnciWJFHA.4092@tk2msftngp13.phx.gbl...
    > Or leave it as basic, and use SSL/HTTPS to encrypt the data on the wire.
    >
    > --
    >
    > - Paul Glavich
    > ASP.NET MVP
    > ASPInsider ([url]www.aspinsiders.com[/url])
    >
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:uhJDM5LJFHA.2476@TK2MSFTNGP12.phx.gbl...
    >> If you want to use IWA, you will need Kerberos delegation as well. A
    > Google
    >> search should turn up many hits in this newsgroup and in the the MS
    >> kbase.
    >>
    >> Joe K.
    >>
    >> "Gareth" <gareth@donotsend.com> wrote in message
    >> news:%23pXqouJJFHA.3340@TK2MSFTNGP14.phx.gbl...
    >> >I have an ASP.net web site that accesses a COM object remotely, but I
    > have
    >> >to use the 'basic authentication' and not 'Integrated Windows
    >> >authentication', else I get an access denied error.
    >> >
    >> >
    >> >
    >> > The web.config has
    >> >
    >> >
    >> >
    >> > <authentication mode="Windows" />
    >> >
    >> > <identity impersonate="true"/>
    >> >
    >> >
    >> >
    >> >
    >> >
    >> > This is the code I use for creating the COM object
    >> >
    >> >
    >> >
    >> >
    >> >
    >> > Type t = Type.GetTypeFromProgID("Service.myPorgID.1", "RemoteServer",
    >> > true);
    >> >
    >> > if ( t != null )
    >> >
    >> > {
    >> >
    >> > iCs = (myPorgID) Activator.CreateInstance(t);
    >> >
    >> > }
    >> >
    >> > else
    >> >
    >> > {
    >> >
    >> > iCs = null;
    >> >
    >> > }
    >> >
    >> >
    >> >
    >> > I like this work in both ways 'basic authentication' and 'Integrated
    >> > Windows authentication'.
    >> >
    >> >
    >> >
    >> > I am using IIS5, the remote service is a 'XP SP2' and the web site is
    >> > on
    > a
    >> > windows 2000 server, all in same domain.
    >> >
    >> >
    >> >
    >> > Thanks for the help
    >> >
    >> >
    >> >
    >> > Gareth
    >> >
    >> >
    >> >
    >>
    >>
    >
    >

    Gareth Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139