Authentication Error - windows credentials provided could not be v
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Authentication Error - windows credentials provided could not be v




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Authentication Error - windows credentials provided could not be v  
Tom


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-25-07 06: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.Au
thenticateAsUser(String
ServerAccountName, String password, RcwPublishingMode Mode, String
ClientAccountName, String authenticationType, String
remoteMachineAddress)\r\n   at
Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsU
ser(String
serverAccountName, String password, PublishingMode mode)\r\n   --- End of
inner exception stack trace ---\r\n   at
Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateAsU
ser(String
serverAccountName, String password, PublishingMode mode)\r\n   at
CMS.CMSWebServices.Service.CMSLoginCheck(CmsUser user, String& loginError) i
n
 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







[ Post a follow-up to this message ]



    Re: Authentication Error - windows credentials provided could not be v  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-25-07 06: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.AuthenticateA
sUser(String
> serverAccountName, String password, PublishingMode mode)\r\n   --- End of
> inner exception stack trace ---\r\n   at
> Microsoft.ContentManagement.Publishing.CmsApplicationContext.AuthenticateA
sUser(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
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register