Skip to content

ASP.NET hosted on CentOS 7 with Windows authentication - GSSAPI: Feature not available #33754

@lbalusek

Description

@lbalusek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Status: No Recent Activityarea-authIncludes: Authn, Authz, OAuth, OIDC, Bearer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions