【问题标题】:How to configure windows authentication in linux/ubuntu for dotnet core (.NET 6)如何在 linux/ubuntu 中为 dotnet core (.NET 6) 配置 Windows 身份验证
【发布时间】:2022-11-10 22:48:46
【问题描述】:

我在 Windows 环境中尝试使用 IIS、Apache 和 Nginx 作为反向代理发布的文件。 除了在 linux ubuntu 20.04 中,所有工作都没有任何问题。 它给出以下错误:

  Content root path: xxxxxxxxx fail: Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler[5]
  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 (Keytab FILE:/etc/krb5.keytab is nonexistent or empty).

我试过这个link 根本没有解决方案。 关注微软文档link。 有没有人尝试使用 Windows 身份验证在 linux 中托管 .Net 6.0? 它无需 windows 身份验证即可工作,但我需要 windows 身份验证,因为它是迁移的 .net 4.6 代码。 任何帮助和指示都会很棒。

笔记。 linux环境的新手。

【问题讨论】:

    标签: c# linux .net-core .net-6.0 windows-authentication


    【解决方案1】:

    我在这里没有经验,但这是您应该在 Google 上搜索的错误消息的相关部分:

    Keytab FILE:/etc/krb5.keytab is nonexistent or empty
    

    我发现this answer 看起来很有希望。它建议运行它会创建 keytab 文件,并且可能修复错误信息:

    net ads keytab create -U administrator
    

    【讨论】:

      【解决方案2】:

      下午好。你是如何解决这个问题的?

      【讨论】:

      猜你喜欢
      • 2021-03-16
      • 1970-01-01
      • 2021-07-21
      • 1970-01-01
      • 2019-11-28
      • 2018-01-07
      • 2018-06-22
      • 2020-03-04
      • 1970-01-01
      相关资源
      最近更新 更多