473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to use kerbros in a webpart(Asp.Net Custom Control)

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


Nov 16 '05 #1
1 1823
Make sure you have:
1. The machine running SharePoint is set "trusted for delegation" in the AD.
2. Your clients are IE 5.5 or higher with "Integrated Windows
Authentication" enabled.
3. The account(s) must not have the "delegation disabled" policy enabled.

Willy.

"ALI-R" <ne****@microsoft.com> wrote in message
news:ur*************@TK2MSFTNGP09.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

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe L via .NET 247 | last post by:
I have written a web part. The webpart calls a web service toget info. I ran into problems with the webservice notresponding. We decided to have a cutoff for the time to waitfor a response from...
5
by: Christopher Kimbell | last post by:
I have created my own WebPart using code, it is not derived from a UserControl. Inside this WebPart I create a Calendar Control and add it to the WebParts Control collection. Now I want to apply...
2
by: ryan.mclean | last post by:
Hello all, Can I add custom verbs to ascx webparts? I have seen good examples where the webpart is a custom control thingy that inherits from System.Web.UI.WebControls.WebParts, then overrides...
3
by: Jav | last post by:
I create a UserControl (.ascx), and then change it in code to: Inherits System.Web.UI.WebControls.WebParts.WebPart expecting that it will now be treated as a WebPart. But this immediately...
0
by: Jose Walker | last post by:
Hi there! I've been fighting with an issue that by now is driving me crazy. I've developed a ASP.NET 2 web part from which I build dynamically an ASP.NET 2 Menu control, I populate the control...
1
by: yfa | last post by:
Hello, I'm using WebPart on a IIS 6.0 web server running Windows 2003. I made a backup of the ASP database and I restore it on an other computer with Windows XP. Test 1 : I started the web...
0
by: SHHHH | last post by:
I write this code in webpart.aspx and add this file to my project: <div > <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> <table runat...
3
by: =?ISO-8859-1?Q?Jo=E3o_Maia?= | last post by:
Hi there, I am having a weird problem in trying to use a ASP.NET menu inside a custom web part. I am developing a custom web part that has a menu inside (just the menu, nothing else). The menu...
2
by: skneife | last post by:
I need to create some zones in my asp page, that contains a header and a body like a webpart. How can I use a webpart for this designed without any webpart menu or connection with anything, like a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.