473,769 Members | 5,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Cred entials =
System.Net.Cred entialCache.Def aultCredentials ;"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 1838
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****@microso ft.com> wrote in message
news:ur******** *****@TK2MSFTNG P09.phx.gbl...
I'm writing a webpart which is supposed to connect to a Webserice in our
interanet.I am using "RSService.Cred entials =
System.Net.Cred entialCache.Def aultCredentials ;"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
3585
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 the web service. I am setting the Timeouton the webservice proxy before calling the webservice method. Iam not getting the results I expected. Below is the code andthe exception I get. ... Results results = null; try { MyWebService mws =...
5
1311
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 a theme to this Calendar that is inside my WebPart. How do I do that? I have created a theme and added a definition for a calendar. The theme is applied to a calendar that is not inside the WebPart, but it is not applied to the one inside.
2
1468
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 the verbs property, but not how to do it with ascx webparts. Any ideas are greatly appreciated, Ryan
3
1730
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 generates 2 errors. How does one go about creating a WebPart by inheriting as above? (I know that I can drag a UserControl into a WebPartZone and it will be wrapped in a GenericWebPart.) Thanks Jav
0
1132
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 dynamically as well... and everything seems to be ok. When running the web application, I get the menu rendered, but no styles are applied to the menu, nor does displays the submenus correctly. When hovering on the menu, displays an emply layer...
1
1287
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 site with the personal web server provided by Visual Studio 2005. WebParts previously created when the web site was on IIS 6.0 do not display. Test 2 : I started the web site with IIS 5.0 provided by Windows XP.
0
1016
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 ="server" > <tr > <td> <asp:WebPartZone ID="WebPartZone5" runat ="server" > <ZoneTemplate > <asp:Calendar ID="Calendar1" runat="server" Title="Time & Date" BackColor="White" BorderColor="#3366CC"...
3
2210
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 is a System.Web.UI.WebControls.Menu (ASP.NET 2.0) object. If I add the menu to a simple ASPX web form, it works nice. However, I am adding it to my web part, by overriding the RenderWebPart method and doing something like:
2
1622
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 stand alone control ? Thanks. Sam
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.