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

相关推荐
逢生博客3 小时前
Mac 搭建仓颉语言开发环境(Cangjie SDK)
macos·华为·鸿蒙
Rverdoser6 小时前
MacOS Catalina 从源码构建Qt6.2开发库之01: 编译Qt6.2源代码
macos
GEEKVIP9 小时前
如何在没有备份的情况下恢复 Mac 上丢失的数据
经验分享·笔记·安全·macos·电脑·笔记本电脑·改行学it
yanling20239 小时前
黑神话悟空mac可以玩吗
macos·ios·crossove·crossove24
Vzhangs12 小时前
MacOS Sonoma(14.x) 大写模式或中文输入法下的英文模式,光标下方永远会出现的CapsLock箭头Icon的去除办法
macos
2401_8524035516 小时前
Mac导入iPhone的照片怎么删除?快速方法讲解
macos·ios·iphone
Vzhangs1 天前
MacOS Safari浏览器按ESC就退出全屏模式的去除办法
macos·safari
htt7891 天前
ARP:IP到MAC地址转换
服务器·tcp/ip·macos
名字不要太长 像我这样就好1 天前
【iOS】push和pop、present和dismiss
学习·macos·ios·objective-c·cocoa
遇见小美好1 天前
Mac笔记本上查看/user/目录下的文件的几种方法
macos