alanjuden / MvcReportViewer

Custom Report Viewer control to replace MS Report Viewer on MVC projects (also works on .NET Core as a Report Viewer).
MIT License
173 stars 109 forks source link

NTLM in Linux #59

Open nandkumariitr opened 6 years ago

nandkumariitr commented 6 years ago

Hi Alan,

Thanks Alan, It really helped me to implement in my project. Although while deploying it to linux the NTLM authentication is throwing the error:

:: Could not validate report server configuration or user credentials. One or more errors occurred. (The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'

Appreciate your help.

ctrl-brk commented 6 years ago

I (and others) have the same issue even with Windows. https://alanjuden.com/2016/11/10/mvc-net-core-report-viewer/#comment-26233

alanjuden commented 6 years ago

Hi, @nandkumariitr & @ctrl-brk. I'd love to try and help you but it would be useful to answer some questions just as I asked in the comments on my blog from the comment that @ctrl-brk reference (https://alanjuden.com/2016/11/10/mvc-net-core-report-viewer/#comment-26234).

  1. How did you set everything up? Did you pull my code and set it up manually or did you use the NuGet installer?
  2. Are you running on standard MVC or on .NetCore?
  3. Have you adjusted your default credentials in the ReportController? (property is named “NetworkCredentials”)

I'm assuming that you can access the SSRS instance normally through a web browser correct?

Alan

ctrl-brk commented 6 years ago

It might not be your issue but maybe someone more familiar with SSRS internals has some ideas...

Here's my comment on your blog mentioned above:

I have the same problem as Yow and Ryan. The HTTP request is unauthorized with client authentication scheme ‘Negotiate’

Tried Rayn’s solution with proxy but it doesn’t make any difference. What interesting is that the same setup works with SSRS 2012 with no problem but not with SSRS 2016. Anyone aware about any difference between them? What else could it be?

aroraarjita commented 6 years ago

Hi @nandkumariitr and @ctrl-brk

I have faced this issue and the solution to this is while deploying the code on Linux environment please override the property ClientCredentialType to "NTLM" instead of "Windows" which is set in the Alan Juden Code.

Make sure while running the code on your system i.e Windows OS it should be set to windows only.

I could fix this issue using the mentioned solution.

Hope this works!