Geeks With Blogs

Tangible Thoughts SharePoint, MOSS? and all the other questions

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.

Posted on Tuesday, September 7, 2004 12:19 PM SharePoint | Back to top


Comments on this post: (SPS) SSO in SharePoint is driving me nuts

# re: (SPS) SSO in SharePoint is driving me nuts
Requesting Gravatar...
Are you doing this in a GET or POST? I believe this is only supported in a POST.
Left by Chris on Sep 09, 2004 8:06 AM

# re: (SPS) SSO in SharePoint is driving me nuts
Requesting Gravatar...
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
Left by Tariq on Sep 09, 2004 6:25 PM

# re: (SPS) SSO in SharePoint is driving me nuts
Requesting Gravatar...
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?
Left by Chris on Sep 10, 2004 3:10 AM

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

# re: (SPS) SSO in SharePoint is driving me nuts
Requesting Gravatar...
Sent you an email - hopefully we solve offline and you can published the solution.
Left by Chris on Sep 10, 2004 7:58 AM

# re: (SPS) SSO in SharePoint is driving me nuts

# re: (SPS) SSO in SharePoint is driving me nuts
Requesting Gravatar...
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

Left by keyur on Oct 20, 2005 7:58 AM

Your comment:
 (will show your gravatar)


Copyright © Tariq | Powered by: GeeksWithBlogs.net