I'm looking to set a user's credentials for a particular webpart/application that utilizes the SSO database within Sharepoint. Can someone point me to a code sample of how I might do this in .net? The webpart/application typically stores the user's credentials upon the first use but I'd rather they not even be bothered with entering them at all.
A:
I assume your integrating an existing .net application into SharePoint. If so, the following article should help you out:
SharePoint Single Sign-on: Part I, Part II
Also, if your looking to integrate SharePoint into an existing log-in system, you can implement a pluggable SSO Provider to do that for you. You can also integrate SharePoint and active directory (SO Question on the topic).
ICodeForCoffee
2010-05-31 23:54:44
Interesting links but does not really answer my question.
CaffeineFueled
2010-06-03 18:23:20
Can you clarify your question? I'm not sure what your trying to do exactly, so I gave you the best collection of things I know can be done.
ICodeForCoffee
2010-06-03 21:11:43
I have a webpart installed that connects to a backend unix system using credentials that are stored in the SSO database. The first time the user clicks on that webpart they are prompted for their unix credentials. For new users, I would like to programmatically set their unix credentials ahead of time so they are not prompted.
CaffeineFueled
2010-06-05 16:22:46
Why can't you have the web part provide the credentials to the unix system for the logged in SharePoint user? I think you may need to post another question with some code and details about what your trying to do. I'm not sure how your connecting to the Unix service, so I can't tell you how you can pass information to it.
ICodeForCoffee
2010-06-08 17:07:55
The WebPart is a pre-canned solution that I have no ability to edit. The WebPart will ask the user for their (unix) credentials the first time it is used which is then stored in the SSO database for subsequent usage. All I'm attempting to do is prevent the user from having to enter the credentials. My thought was that there would an API I could call into to set these credentials ahead of time.
CaffeineFueled
2010-06-09 22:04:46