The Wayback Machine - https://web.archive.org/web/20220127164203/https://github.com/dotnet/aspnetcore/issues/39816
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

Window Authentication in Linux .net core #39816

Open
1 task done
uyau opened this issue Jan 27, 2022 · 0 comments
Open
1 task done

Window Authentication in Linux .net core #39816

uyau opened this issue Jan 27, 2022 · 0 comments

Comments

@uyau
Copy link

@uyau uyau commented Jan 27, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

0

I'm trying to make work window authentication in Linux/Debian server with Kerberos. I'm using .net core 3.1 and IdentityServer4. For now I had joined Linux to the Windows AD like docs say: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-3.1&tabs=visual-studio#kestrel-1

I have managet to work kerberos from bash with -kinit command. I also made work Apache2 with kerberos.

But in .net core it's always returns in logs [17:39:53 Information] Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler AuthenticationScheme: Negotiate was challenged.

[17:39:54 Information] Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler None

if I set in krb5.conf wrong encript type I have error like:

Interop+NetSecurityNative+GssApiException: GSSAPI operation failed with error - Unspecified GSS failure. Minor code may provide more information(Request ticket server **** kvno 4 enctype aes256-cts found in keytab but cannot decrypt ticket). at System.Net.Security.NegotiateStreamPal.GssAcceptSecurityContext(SafeGssContextHandle& context, Byte[] buffer, Byte[]& outputBuffer, UInt32& outFlags) at System.Net.Security.NegotiateStreamPal.AcceptSecurityContext(SafeFreeCredentials credentialsHandle, SafeDeleteContext& securityContext, ContextFlagsPal requestedContextFlags, Byte[] incomingBlob, ChannelBinding channelBinding, Byte[]& resultBlob, ContextFlagsPal& contextFlags)

So the token is passing GSSAPI in normal mode and trying to validate user, but there is alwayse None in anwser.

Expected Behavior

win auth

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

3.1

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants