douren5898 2019-04-08 21:32 采纳率: 100%
浏览 1034

如何在Golang应用中使用Kerberos建立连接?

I have task to create SSO (single sign-on) in Golang application with the help of Kerberos and Active Directory. In other words, if an employee of the company makes a request for a specific URL, the service must return information about him.

I decided to use gokrb5 library.

What I have done so far:

1) SPN name for the service was created in Active Directory.

2) krb5.keytab file for the service was created.

3) Active Directory and Kerberos server located on remote Windows server.

4) Golang application would be in Linux Docker container.

5) I install Kerberos client to Docker container.

6) I put krb5.keytab file to etc folder of Docker container.

7) Kerberos Realm: EXAMPLE.LOCAL.

8) hostname for the KDC Server: CS001, CS002, CS003

What the configuration file krb5.conf for Kerberos client should look like? How in Golang application I can correctly send token to Kerberos?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
    • ¥15 路易威登官网 里边的参数逆向
    • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
    • ¥50 需求一个up主付费课程
    • ¥20 模型在y分布之外的数据上预测能力不好如何解决
    • ¥15 processing提取音乐节奏
    • ¥15 gg加速器加速游戏时,提示不是x86架构
    • ¥15 python按要求编写程序
    • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入