Tangible Thoughts

SharePoint, MOSS? and all the other questions

  Home  |   Contact  |   Syndication    |   Login
  858 Posts | 6 Stories | 475 Comments | 2088 Trackbacks

News

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Linky Things

SharePoint Bloggers

SharePoint Related

What I am playing

What I am Reading

Actually I am complaining about very simple bit of code. It is so simple that even I could write it (or copy and paste it) a million times. All I want to do is to set a user’s Credentials into the Single SignOn database from a WebPart, but the frigging thing keeps failing.

string[] rgSetCredentialData = new string[2];

rgSetCredentialData[0] = "2ser";

rgSetCredentialData[1] = "rb26dett";

Credentials.SetCredentials(

1,

"TestSSOAPP",

rgSetCredentialData);

The error returned is SSO_E_CANARY_VALIDATION_FAILURE, O.K. now what the hell is a Canary? And what is it doing in SharePoint. Adding the current WebPart Page to the SSOCanaryChecker (the class name sounds like a name for veterinarians who deal with canary birds doesn’t it?) had no effect. Adding a FormDigest control to the WebPart had no effect.

But you know what, the above code snippet works like a charm in a Console App or a Windows Form, which leads me to believe this canary who ever it might be has something against the Web.

Fortunately I am not the only one facing this dilemma, there were 2 other similar postings on the newgroups (one from Geoff and another from Christopher), but in the usual SharePoint.PortalServer and SharePoint.PortalServer.Development fashion they were unanswered.

So my friends; Christopher and Geoff, my deepest sympathies to you.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Tuesday, September 07, 2004 12:19 PM

Feedback

# re: (SPS) SSO in SharePoint is driving me nuts 9/9/2004 8:06 AM Chris
Are you doing this in a GET or POST? I believe this is only supported in a POST.

# re: (SPS) SSO in SharePoint is driving me nuts 9/9/2004 6:25 PM Tariq
I am sorry I didnt get you,
its coded into the WebPart, which means it would run on Server Side, and its a direct call to the SharePoint Object Model

# re: (SPS) SSO in SharePoint is driving me nuts 9/10/2004 3:10 AM Chris
How is the page that contains the server side control called? Are you doing a post back or some other POST or just a regular GET?

# re: (SPS) SSO in SharePoint is driving me nuts 9/10/2004 5:02 AM Tariq
tried it with a postback as well as a get.
No difference.
Any reason you suspect why it only works with a post?

# re: (SPS) SSO in SharePoint is driving me nuts 9/10/2004 7:58 AM Chris
Sent you an email - hopefully we solve offline and you can published the solution.

# re: (SPS) SSO in SharePoint is driving me nuts 9/27/2004 6:20 AM Tariq
Solved
http://geekswithblogs.net/tariq/archive/2004/09/10/10961.aspx

# re: (SPS) SSO in SharePoint is driving me nuts 10/20/2005 7:58 AM keyur
Need help of you.

Right now, i am trying to implement SSO using sharepoint.

I tried using the same code snippet from the SDK.

Now i got the error in following statement.

SingleSignonLocator.GetCredentialEntryUrl().

I mean it fails to locate enterprise application defination.

Please help me in solving the same.

Thanks in advance for your help.

Regards,
Keyur



Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: