Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Authentication (Kerberos/NTLM) in asp.net core linux #4737

Closed
FZ14 opened this issue Jul 12, 2018 · 22 comments
Closed

Windows Authentication (Kerberos/NTLM) in asp.net core linux #4737

FZ14 opened this issue Jul 12, 2018 · 22 comments
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-kestrel
Milestone

Comments

@FZ14
Copy link

FZ14 commented Jul 12, 2018

Hello.
Enterprise Application Development still requires Windows Authentication (via NTLM/Kerberos).
It perhaps in asp.net core development model on kestrel server in Linux?

@Tratcher
Copy link
Member

@blowdart

@Drawaes
Copy link
Contributor

Drawaes commented Jul 12, 2018

We use Negotiate currently with Kestrel. I am happy to help with this.

@FZ14
Copy link
Author

FZ14 commented Jul 12, 2018

@Drawaes Negotiate auth schema working in Linux now?

@Drawaes
Copy link
Contributor

Drawaes commented Jul 12, 2018 via email

@FZ14
Copy link
Author

FZ14 commented Jul 12, 2018

@Drawaes Maybe you show some samples with this solution for Windows Auth in linux?:)

@blowdart
Copy link
Contributor

There's certainly no official support, because it'd take external libraries. It's something we are considering, but it's not high on the list of priorities.

@tejpratapsingh
Copy link

Most of the enterprise development would rely on AD authentication. Please make this a high priority.

@FZ14
Copy link
Author

FZ14 commented Jul 17, 2018

Agree with @tejpratapsingh. In my case the choice was made in favor of Java Spring, because Asp.Net core not support windows integrated authentication officialy :(

@Drawaes
Copy link
Contributor

Drawaes commented Jul 17, 2018

I thought normally for Spring you put it behind Apache to get Ntlm etc. There is no reason you can put aspnet core behind IIS or ngix and get the same result.

@CodeSwimBikeRunner
Copy link

@FZ14 @tejpratapsingh @blowdart . I wonder if we all work for the same company lol. We also have to use Java/Spring. We are a very large company and really need the kerberos support. Even if its just instructions on how to do an apt-get or some other package and supply the kb5.conf. It appears you guys are close, or ready to support it, this is my current error with trusted_security = true. and using just the Data.SqlClient

"Cannot access Kerberos ticket. Ensure Kerberos has been initialized with 'kinit'.\nErrorCode=InternalError, Exception=Interop+NetSecurityNative+GssApiException: GSSAPI operation failed with error - An invalid status code was supplied (SPNEGO cannot find mechanisms to negotiate).\n

@blowdart
Copy link
Contributor

@DamianEdwards for awareness.

@Drawaes
Copy link
Contributor

Drawaes commented Jul 19, 2018

SQL using integrated auth on Linux just looks like a config issue and is separate to the OP issue of no support in asp.net core

@Drawaes
Copy link
Contributor

Drawaes commented Jul 19, 2018

Cough, cough

Here is one for windows... Feature or issues are welcome I will work on the Linux one if there is interest

It's not a proper aspnet core auth provider but I am happy to make it so if people care enough

https://www.nuget.org/packages/CondenserDotNet.Middleware/

@evil-shrike
Copy link
Contributor

@aspnet-hello aspnet-hello transferred this issue from aspnet/KestrelHttpServer Dec 13, 2018
@aspnet-hello aspnet-hello added this to the Backlog milestone Dec 13, 2018
@aspnet-hello aspnet-hello added area-servers enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-kestrel labels Dec 13, 2018
@guiohm
Copy link

guiohm commented Jan 24, 2019

@Drawaes, we're interested at my company in Windows Auth on Linux and inside containers.
Can CondenserDotNet be used on Linux?

@kenk667
Copy link

kenk667 commented Feb 7, 2019

This has been an issue within my organization as well. We run cloud foundry and have no desire to launch windows images just to be able to configure windows auth. It's surprising to hear how this isn't a priority when it's very common to have Windows AD as the identity provider with a dominantly linux enterprise environment. @blowdart please bring this into your current iteration.

@ChrisWeinrich
Copy link

Same Here, we want to switch to NGNIX on Red Hat in a Big Enterprise Environment and missing AD authentication is a complete showstoper.

@Drawaes
Copy link
Contributor

Drawaes commented Feb 8, 2019

Why don't you do the auth at NGNIX in this case? Surely this is only an issue (that I think is useful) for people running raw Kestrel.

@ChrisWeinrich
Copy link

Ok then my understanding of auth and reverse proxies is not deep enough

@Tratcher
Copy link
Member

Tratcher commented Apr 9, 2019

Closing as a duplicate of #4662, which we're prototyping for 3.0.

@Tratcher Tratcher closed this as completed Apr 9, 2019
@Tratcher
Copy link
Member

@fngch Comments on closed issues are not tracked, please open a new issue with the details for your scenario.

Client errors should be reported here: https://github.com/dotnet/corefx

@roeidalm
Copy link

Hello @Drawaes, I try to integrate Kerberos authentication in my code (core 2/3) and it still not working. Can you help me with this?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
@amcasey amcasey added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-kestrel
Projects
None yet
Development

No branches or pull requests