Calling a webservice using Kerberos

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

  1. #1

    Default Calling a webservice using Kerberos

    I'm writing a webpart which is supposed to connect to a Webserice in our
    interanet.I am using "RSService.Credentials =
    System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the
    webservice.but it dosn't work.why?


    I think SharePoint which hosts my webpart authenticate the user requesting
    my webpart and because credential lasts only for one connection ,when web
    part wants to call webservice there is no credenatial anymore and I get 401
    (Unauthorized) Error.I was told to use Kerberos because it flows the user
    identity,but I don't know how to use it in this scenario.





    Is there somebody who can give me some hints?

    Thanks




    ALI-R Guest

  2. Similar Questions and Discussions

    1. Prob while using Kerberos in webservice
      Hi, I m trying to use kerberos security method and calling a simple a WS which will display user's name. Code is as below : ...
    2. Calling a webservice from a webservice
      Well, I dont really want to call a webservice, but the class that I need is in a webservice and I dont see the need for serialization if I am...
    3. Calling COM+ component from webservice
      I'm a newbie with ASP.NET and webservices. I have a webservice that is calling a C# dll. This dll then calls methods in a VB COM+ component. The...
    4. Calling COM+ in a WebService
      Can I get a sample on how to call a com+ componant in a webservice, please? This is what I have so far and I am getting an error Run-time exception...
    5. Webservice calling a webservice.....Error
      Hi Ihave a strange problem .....or?? On one machine 1 i have a webservice A calling an other webservice B on a other machine 2 . the B service are...
  3. #2

    Default Re: Calling a webservice using Kerberos

    You need to read up on Kerberos delegation. That is what you need to make
    this scenario work. You might start here:
    [url]http://msdn.microsoft.com/vstudio/using/building/web/default.aspx?pull=/library/en-us/dnnetsec/html/SecNetHT05.asp?FRAME=true#ImplementKerberos[/url]
    [url]http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx[/url]

    Also, this newsgroup is full of Kerberos delegation posts that you can find
    with Google.

    Joe K.

    "ALI-R" <newbie@microsoft.com> wrote in message
    news:eb6QkGy$EHA.3504@TK2MSFTNGP12.phx.gbl...
    > I'm writing a webpart which is supposed to connect to a Webserice in our
    > interanet.I am using "RSService.Credentials =
    > System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the
    > webservice.but it dosn't work.why?
    >
    >
    > I think SharePoint which hosts my webpart authenticate the user requesting
    > my webpart and because credential lasts only for one connection ,when web
    > part wants to call webservice there is no credenatial anymore and I get
    > 401
    > (Unauthorized) Error.I was told to use Kerberos because it flows the user
    > identity,but I don't know how to use it in this scenario.
    >
    >
    >
    >
    >
    > Is there somebody who can give me some hints?
    >
    > Thanks
    >
    >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: Calling a webservice using Kerberos

    As Jow said you need to read up on delegation. Basicalliy you need to enable
    the server and the account for delegation. Then the credentials will flow.

    Chris Rolon

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:OeohoQy$EHA.2032@tk2msftngp13.phx.gbl...
    > You need to read up on Kerberos delegation. That is what you need to make
    > this scenario work. You might start here:
    >
    [url]http://msdn.microsoft.com/vstudio/using/building/web/default.aspx?pull=/library/en-us/dnnetsec/html/SecNetHT05.asp?FRAME=true#ImplementKerberos[/url]
    >
    [url]http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx[/url]
    >
    > Also, this newsgroup is full of Kerberos delegation posts that you can
    find
    > with Google.
    >
    > Joe K.
    >
    > "ALI-R" <newbie@microsoft.com> wrote in message
    > news:eb6QkGy$EHA.3504@TK2MSFTNGP12.phx.gbl...
    > > I'm writing a webpart which is supposed to connect to a Webserice in our
    > > interanet.I am using "RSService.Credentials =
    > > System.Net.CredentialCache.DefaultCredentials;"to Authenticate to the
    > > webservice.but it dosn't work.why?
    > >
    > >
    > > I think SharePoint which hosts my webpart authenticate the user
    requesting
    > > my webpart and because credential lasts only for one connection ,when
    web
    > > part wants to call webservice there is no credenatial anymore and I get
    > > 401
    > > (Unauthorized) Error.I was told to use Kerberos because it flows the
    user
    > > identity,but I don't know how to use it in this scenario.
    > >
    > >
    > >
    > >
    > >
    > > Is there somebody who can give me some hints?
    > >
    > > Thanks
    > >
    > >
    > >
    > >
    >
    >

    Chris Rolon 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