MacOS 14.1 配置kerberos认证

MacOS 14.1 配置kerberos认证

MacOS 14.1 配置kerberos认证

原操作系统为 10.14.*,因安装别的软件失败,不想去找旧版本了,所以把OS直接升级到最新版的14.1啦,升级后就一个字"爽!",but 各种兼容问题也就来啦,解决吧,今天写MacOS 14.1 配置kerberos认证。

krb5.conf

该文件放到/etc下

javascript 复制代码
[libdefaults]
 dns_lookup_realm = false
 ticket_lifetime = 30d
 renew_lifetime = 365d
 forwardable = true
 rdns = false
 default_realm = XXXX.XX
# default_ccache_name = KEYRING:persistent:%{uid}
udp_preference_limit = 1
# 支持配置多个
[realms]
 XXXX.XX = {
  kdc = tcp/xxxx.xx
  admin_server = tcp/xxxx.xx
 }
YYYY.YY = {
  kdc = tcp/yyyy.yy
  admin_server = tcp/yyyy.yy
 }

[domain_realm]
 .xxxx.xx = XXXX.XX
 xxxx.xx = XXXX.XX
 .yyyy.yy = YYYY.YY
 yyyy.yy = YYYY.YY

票据显示程序

位置和配置如图所示,添加身份和密码即可链接。


问题

需要用自带的safari浏览器,经修改配置测试Google浏览器偶尔好用偶尔不行,太麻烦了。

javascript 复制代码
HTTP ERROR 401
Problem accessing /cluster/apps. Reason:

    Authentication required
Powered by Jetty://
shell 复制代码
# curl 测试命令加 --negotiate -u
# 我这里访问的是kerberos认证的yarn的UI
curl -k -i --negotiate -u : http://xxx:port/cluster/apps

参考地址

1.https://codeleading.com/article/53275130708/
2.https://www.wenjiangs.com/article/kerberos-testing.html

相关推荐
iFlyCai1 小时前
对Mac文字双击或三击鼠标左键没有任何反应
macos·计算机外设
請你喝杯Java14 小时前
Mac上Cursor无法安装插件解决方法
macos·cursor·vsode
网络之路Blog17 小时前
【实战中提升自己】内网安全部署之端口隔离与MAC地址认证
安全·macos·网络之路一天·华为华三数通基础·华为华三企业实战架构·华为中小型企业实战·华为华三计算机网络基础
心随_风动17 小时前
主流操作系统对比分析(macOS、Linux、Windows、Unix)
linux·windows·macos
lxw184491251418 小时前
macOS 系统设置息屏情况下,PHP等后台脚本继续执行
macos
Brian_Lucky21 小时前
在 macOS 上合并 IntelliJ IDEA 的项目窗口
java·macos·intellij-idea
未来之窗软件服务1 天前
声音分离人声和配乐-从头设计数字生命第5课, demucs——仙盟创梦IDE
ide·macos·xcode·仙盟创梦ide·数字生命
我该如何取个名字1 天前
Mac mini 安装mysql数据库以及出现的一些问题的解决方案
数据库·mysql·macos
ttumetai2 天前
MacOS中安装Python(homebrew,pyenv)
python·macos
我->是->谁2 天前
VMware Fusion Pro 13 Mac版虚拟机 安装Win11系统教程
macos