Microsoft Content Management Server - Authentication Error - windows credentials provided could not be v

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2007 > Authentication Error - windows credentials provided could not be v





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Authentication Error - windows credentials provided could not be v
Tom

2007-04-25, 1:19 pm

I am trying to connect to CMS SP2 using the following code but I am getting
an error,

Microsoft.ContentManagement.Publishing.CmsAccessDeniedException: The windows
credentials provided could not be validated. --->
System.Runtime.InteropServices.COMException (0x80041BF3): Login attempt
failed. Access is denied.\r\n at
Microsoft.ContentManagement.Interop.Publishing.CmsApplicationContextClass.AuthenticateAsUser(String
ServerAccountName, String password, RcwPublishingMode Mode, String
ClientAccountName, String authenticationType, String
remoteMachineAddress)\r\n at
Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsUser(String
serverAccountName, String password, PublishingMode mode)\r\n --- End of
inner exception stack trace ---\r\n at
Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsUser(String
serverAccountName, String password, PublishingMode mode)\r\n at
CMS.CMSWebServices.Service.CMSLoginCheck(CmsUser user, String& loginError) in
c:\\inetpub\\wwwroot\\CMSWebServices\\Ap
p_Code\\Service.cs:line 465"

Here is the code...

public CmsApplicationContext cmsContext1 = new CmsApplicationContext();
cmsContext.AuthenticateAsUser(user.UserName, user.Password,
PublishingMode.Unpublished);

Where user.UserName is a CMS Admin

Can anyone help out?

Thanks

Tom


Stefan Goßner [MSFT]

2007-04-25, 1:19 pm

Hi Tom,

did you ensure that user.UserName is of the following format:
"WinNT://domain/username"?
Other formats are not supported.

Cheers,
Stefan


"Tom" <Tom@discussions.microsoft.com> wrote in message
news:DCA1A678-BD51-4516-909A-2C4F799F730B@microsoft.com...
>I am trying to connect to CMS SP2 using the following code but I am getting
> an error,
>
> Microsoft.ContentManagement.Publishing.CmsAccessDeniedException: The
> windows
> credentials provided could not be validated. --->
> System.Runtime.InteropServices.COMException (0x80041BF3): Login attempt
> failed. Access is denied.\r\n at
> Microsoft.ContentManagement.Interop.Publishing.CmsApplicationContextClass.AuthenticateAsUser(String
> ServerAccountName, String password, RcwPublishingMode Mode, String
> ClientAccountName, String authenticationType, String
> remoteMachineAddress)\r\n at
> Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsUser(String
> serverAccountName, String password, PublishingMode mode)\r\n --- End of
> inner exception stack trace ---\r\n at
> Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsUser(String
> serverAccountName, String password, PublishingMode mode)\r\n at
> CMS.CMSWebServices.Service.CMSLoginCheck(CmsUser user, String& loginError)
> in
> c:\\inetpub\\wwwroot\\CMSWebServices\\Ap
p_Code\\Service.cs:line 465"
>
> Here is the code...
>
> public CmsApplicationContext cmsContext1 = new CmsApplicationContext();
> cmsContext.AuthenticateAsUser(user.UserName, user.Password,
> PublishingMode.Unpublished);
>
> Where user.UserName is a CMS Admin
>
> Can anyone help out?
>
> Thanks
>
> Tom
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com