-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Hello,
we have ASP.NET backend server running on .NET 5, its hosted on CentOS 7 and we have some issues with Windows AD authentication.
We have followed this tutorial, meaning that we have added AddAuthentication
+ AddNegotiate
and UseAuthentication
to our Startup.cs
, host machine - CentOS 7 is in domain, we have also set the KRB5_KTNAME
, it points to the existing keytab file, which we have generated on the domain controller.
When i use command kinit username@DOMAIN.COMPANY.COM
and then fill out my password, everything seems to be ok, i also see some ticket, when i invoke klist
command.
But for some reason, our ASP.NET server is unable to authenticate me, when i open its url in a browser, fill out my credentials, i get the following error:
2021-06-21 07:51:55.4321|ERROR|Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler|An exception occurred while processing the authentication request. Interop+NetSecurityNative+GssApiException: GSSAPI operation failed with error - Unspecified GSS failure. Minor code may provide more information (Feature not available).
I have completely no idea what this error means and i am unable to google any meaningful results, do you have any ideas?
Thank you!
I have also posted this question on StackOverflow