大网数据广告活动
服务器运维问答

How to change ccache type of MIT Kerberos

· 52CE 我爱测

The MIT Kerberos Documentation lists seven different ways to store Kerberos credentials: API DIR FILE KCM KEYRING MEMORY MSLSA At the moment my Kerberos setup is storing credentials in a file in the /tmp directory. In my krb5.con…

问题原文

原帖链接 · arne.z · CC BY-SA 3.0

The MIT Kerberos Documentation lists seven different ways to store Kerberos credentials:

  1. API
  2. DIR
  3. FILE
  4. KCM
  5. KEYRING
  6. MEMORY
  7. MSLSA

At the moment my Kerberos setup is storing credentials in a file in the /tmp directory. In my krb5.conf file the ccache_type option is set to 4 by default:

# The following krb5.conf variables are only for MIT Kerberos.
        krb4_config = /etc/krb.conf
        krb4_realms = /etc/krb.realms
        kdc_timesync = 1
        ccache_type = 4
        forwardable = true
        proxiable = true

And in the MIT Kerberos Documentation about the krb5.conf file it says about the ccache_type option:

This parameter determines the format of credential cache types created by kinit or other programs. The default value is 4, which represents the most current format. Smaller values can be used for compatibility with very old implementations of Kerberos which interact with credential caches on the same host.

It seems that the value of the ccache_type option does not correspond to the seven ccache types that the documentation lists. Since 4 specifies to use the "most current format" and not "KCM".

Therefore, my question is: How can I configure Kerberos to use a different ccache type, for example a keyring or memory?

已采纳解答

原帖链接 · 84104 · CC BY-SA 3.0

You'll want to alter the KRB5CCACHE environmental variable. Usually you'll do this for all instances in krb5.conf as follows:

[libdefaults]
default_ccache_name = KEYRING:persistent:%{uid}

However, you can set it in other ways, e.g. export KRB5CCNAME=KEYRING:persistent:$(id -u).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-06-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。