KRB5.CONF(5) KRB5.CONF(5) (NAME) krb5.conf - (DESCRIPTION) krb5.conf (realms) KDC . krb5.conf /etc . KRB5_CONFIG . KRB5_CONFIG (:) . . KRB5_CONFIG - . (STRUCTURE) krb5.conf INI . '#' ';' ( ) . . : foo = bar : fubar = { foo = bar baz = quux } '*' (final) KRB5_CONFIG . '*' . krb5.conf : include FILENAME includedir DIRNAME FILENAME DIRNAME . . - . . ".conf" "." . . . - . krb5.conf : module MODULEPATH:RESIDUAL MODULEPATH krb5 . RESIDUAL . krb5.conf module kdc.conf(5) . (SECTIONS) krb5.conf : +---------------+-----------------------------------------------+ |[libdefaults] | | | | | | | | | | (Kerberos V5) | +---------------+-----------------------------------------------+ |[realms] | | | | | | | | +---------------+-----------------------------------------------+ |[domain_realm] | | | | | | | | +---------------+-----------------------------------------------+ |[capaths] | | | | | | | | | | | +---------------+-----------------------------------------------+ |[appdefaults] | | | | | | | | | | | | | | | | | +---------------+-----------------------------------------------+ |[plugins] | | | | | | | () | +---------------+-----------------------------------------------+ krb5.conf kdc.conf(5) . [libdefaults] libdefaults : allow_des3 KDC des3-cbc-sha1. des3-cbc-sha1 . false . ( ..) allow_rc4 KDC arcfour-hmac. arcfour-hmac . false . ( ..) allow_weak_crypto false ( Encryption_types kdc.conf(5) ) default_tgs_enctypes default_tkt_enctypes permitted_enctypes . false . canonicalize true KDC (canonicalization) (principal) . false . ccache_type (credential cache) kinit(1) . 4 . . clockskew . ( ) . clockskew . clockskew ( ). default_ccache_name . FILE:/tmp/krb5cc_%{uid} . ( ) . .. default_client_keytab_name keytab . FILE:/etc/krb5/user/%{euid}/client.keytab . . .. default_keytab_name keytab sshd . FILE:/etc/krb5.keytab . . default_rcache_name (replay cache) . dfl: . . .. default_realm . . kinit(1) . default_tgs_enctypes TGS-REQ . . Encryption_types kdc.conf(5) . . permitted_enctypes . permitted_enctypes : aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha384-192 aes128-cts-hmac-sha256-128 des3-cbc-sha1 arcfour-hmac-md5 camellia256-cts-cmac camellia128-cts-cmac. . default_tkt_enctypes AS-REQ . default_tgs_enctypes . . permitted_enctypes . permitted_enctypes : aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha384-192 aes128-cts-hmac-sha256-128 des3-cbc-sha1 arcfour-hmac-md5 camellia256-cts-cmac camellia128-cts-cmac. . dns_canonicalize_hostname . false DNS (FQDN) . fallback ( .) DNS . true . dns_lookup_kdc DNS SRV KDC krb5.conf . ( admin_server kadmind krb5.conf DNS kadmin .) (DoS) DNS . KDC ( ) KDC . dns_uri_lookup DNS URI KDC krb5.conf . URI SRV . true . .. enforce_ok_as_delegate true ok-as-delegate GSSAPI . false ok-as-delegate . false . err_fmt . %M %C . extra_addresses NAT . . noaddresses true . forwardable true KDC (forwardable) . false . ignore_acceptor_hostname GSSAPI krb5 keytab ( ) . . false . .. k5login_authoritative true .k5login(5) k5login . false k5login . true . k5login_directory k5login . k5login .k5login . .k5login (root) . kcm_mach_service macOS (bootstrap) KCM KCM . - Mach RPC KCM . org.h5l.kcm . kcm_socket KCM KCM . - KCM . /var/run/.heim_org.h5l.kcm-socket . kdc_default_options KDC ( XOR ) . 0x00000010 (KDC_OPT_RENEWABLE_OK) . kdc_timesync . KDC . . . noaddresses true NAT . true . permitted_enctypes (authenticator) . . default_tgs_enctypes default_tkt_enctypes . : aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha384-192 aes128-cts-hmac-sha256-128 des3-cbc-sha1 arcfour-hmac-md5 camellia256-cts-cmac camellia128-cts-cmac. plugin_base_dir krb5 . krb5/plugins krb5 . . ( ) . preferred_preauth_types KDC . "17, 16, 15, 14" libkrb5 PKINIT . proxiable true KDC (proxiable) . false . qualify_shortname DNS ( dns_canonicalize_hostname false ). DNS . qualify_shortname = "" . ( ..) rdns true . dns_canonicalize_hostname false . true . realm_try_domains . : -1 0 1 . dns_lookup_kdc DNS . . renew_lifetime ( .) . 0 . spake_preauth_groups SPAKE . : +-------------+--------------------------+ |edwards25519 | Edwards25519 (RFC | | | 7748) | +-------------+--------------------------+ |P-256 | NIST P-256 (RFC | | | 5480) | +-------------+--------------------------+ |P-384 | NIST P-384 (RFC | | | 5480) | +-------------+--------------------------+ |P-521 | NIST P-521 (RFC | | | 5480) | +-------------+--------------------------+ edwards25519 . KDC . .. ticket_lifetime ( .) . 1 day ( ) . udp_preference_limit KDC udp_preference_limit UDP TCP . udp_preference_limit UDP TCP . . verify_ap_req_nofail true keytab . false . client_aware_channel_bindings true (channel bindings) . false . [realms] [realms] . . : admin_server . . kadmind(8) . auth_to_local . . : RULE:exp exp . exp [n:string](regexp)s/pattern/replacement/g . n . string $0 n $n ( johndoe/admin [2:$2$1foo] adminjohndoefoo ). regexp s//[g] . g string string . DEFAULT . . : [realms] ATHENA.MIT.EDU = { auth_to_local = RULE:[2:$1](johndoe)s/^.*$/guest/ auth_to_local = RULE:[2:$1;$2](^.*;admin$)s/;admin$// auth_to_local = RULE:[2:$2](^.*;root)s/^.*$/root/ auth_to_local = DEFAULT } root admin . admin . root root . johndoe/* guest . auth_to_local_names . . default_domain ( rcmd.hostname host/hostname.domain). disable_encrypted_timestamp true KDC . KDC SPAKE FAST . . KDC . .. http_anchors KDC kpasswd HTTPS CA . CA . pkinit_anchors : FILE: filename filename (ca-bundle) OpenSSL . DIR: dirname dirname CA . ( PEM) . ENV: envvar envvar . ENV:X509_PROXY_CA X509_PROXY_CA FILE:/tmp/my_proxy.pem . kdc KDC . . ( IPv6 ) . KDC DNS SRV KDC . kpasswd_server . DNS ( dns_lookup_kdc ). admin_server . master_kdc primary_kdc .. primary_kdc . primary_kdc KDC() . : KDC (replica) . .. v4_instance_convert default_domain . V4 ( ) ( ) . v4_realm krb524 V5 V4 . V4 V5 . . [domain_realm] [domain_realm] . . (.) . realms DNS SRV . . : [domain_realm] crash.mit.edu = TEST.ATHENA.MIT.EDU .dev.mit.edu = TEST.ATHENA.MIT.EDU mit.edu = ATHENA.MIT.EDU crash.mit.edu TEST.ATHENA.MIT.EDU . dev.mit.edu TEST.ATHENA.MIT.EDU dev.mit.edu . mit.edu mit.edu ATHENA.MIT.EDU . KDC . realm_try_domains [libdefaults] . [capaths] () . . transited . . . . "." . . . . ANL.GOV PNL.GOV NERSC.GOV ES.NET . ANL TEST.ANL.GOV NERSC.GOV PNL.GOV . [capaths] ANL.GOV : [capaths] ANL.GOV = { TEST.ANL.GOV = . PNL.GOV = ES.NET NERSC.GOV = ES.NET ES.NET = . } TEST.ANL.GOV = { ANL.GOV = . } PNL.GOV = { ANL.GOV = ES.NET } NERSC.GOV = { ANL.GOV = ES.NET } ES.NET = { ANL.GOV = . } [capaths] NERSC.GOV : [capaths] NERSC.GOV = { ANL.GOV = ES.NET TEST.ANL.GOV = ES.NET TEST.ANL.GOV = ANL.GOV PNL.GOV = ES.NET ES.NET = . } ANL.GOV = { NERSC.GOV = ES.NET } PNL.GOV = { NERSC.GOV = ES.NET } ES.NET = { NERSC.GOV = . } TEST.ANL.GOV = { NERSC.GOV = ANL.GOV NERSC.GOV = ES.NET } . . [appdefaults] [appdefaults] . . : [appdefaults] telnet = { ATHENA.MIT.EDU = { option1 = false } } telnet = { option1 = true option2 = true } ATHENA.MIT.EDU = { option2 = false } option2 = true . telnet EXAMPLE.COM option1 option2 true . telnet ATHENA.MIT.EDU option1 false option2 true . ATHENA.MIT.EDU option2 false . option2 true . . realms . [plugins] o pwqual o kadm5_hook o clpreauth kdcpreauth [plugins] . krb5 [plugins] . .. [plugins] . : disable . . enable_only . . module . modulename:pathname (shared object) pathname modulename . pathname plugin_base_dir [libdefaults] . module . enable_only . [plugins] : ccselect (ccselect interface) ccselect . ( disable ): k5identity .k5identity . realm . hostname . pwqual (pwqual interface) pwqual . : dict . empty . hesiod Hesiod ( Hesiod ). princ . kadm5_hook (kadm5_hook interface) kadm5_hook . MIT Kerberos Active Directory . . kadm5_auth (kadm5_auth interface) kadm5_auth ( .) kadmin kadmin . : acl kadm5.acl(5) . self . clpreauth kdcpreauth (clpreauth and kdcpreauth interfaces) clpreauth kdcpreauth KDC . : pkinit PKINIT . encrypted_challenge FAST . encrypted_timestamp . hostrealm (hostrealm interface) hostrealm ( .) . : profile [domain_realm] default_realm . dns DNS . dns_lookup_realm true . domain (heuristics) . realm_try_domains . localauth (localauth interface) localauth ( .) . : default DEFAULT auth_to_local . rule RULE auth_to_local . names auth_to_local_names . auth_to_local auth_to_local auth_to_local . k5login .k5login(5) . an2ln . certauth (certauth interface) certauth ( .) PKINIT . : pkinit_san (SAN) PKINIT SAN UPN ( pkinit_allow_upn true ) . pkinit_eku (Extended Key Usage) pkinit_eku_checking . dbmatch pkinit_cert_match ( ) . PKINIT (PKINIT OPTIONS) : PKINIT . [libdefaults] [libdefaults] [realms] . [libdefaults] . : 1. [libdefaults]: [libdefaults] EXAMPLE.COM = { pkinit_anchors = FILE:/usr/local/example.com.crt } 2. [realms]: [realms] OTHERREALM.ORG = { pkinit_anchors = FILE:/usr/local/otherrealm.org.crt } 3. [libdefaults]: [libdefaults] pkinit_anchors = DIR:/usr/local/generic_trusted_cas/ PKINIT (Specifying PKINIT identity information) PKINIT : FILE:filename[,keyfilename] . pkinit_identity pkinit_identities filename PEM . keyfilename filename . keyfilename . pkinit_anchors pkinit_pool filename (ca-bundle) OpenSSL . DIR:dirname . pkinit_identity pkinit_identities dirname *.crt *.key . .crt .key . .crt . pkinit_anchors pkinit_pool dirname CA OpenSSL CA hash-of-ca-cert.# . ( PEM) . pkinit_revoke dirname CA OpenSSL hash-of-ca-cert.r# . ( PEM) . PKCS12:filename filename PKCS #12 . PKCS11:[module_name=]modname[:slotid=slot-id][:token=token-label][:certid=cert-id][:certlabel=cert-label] / . modname PKCS #11 . modname . opensc-pkcs11.so . slotid= / token= . certid= / certlabel= . PKINIT pkinit_cert_match . ENV:envvar envvar . ENV:X509_PROXY X509_PROXY FILE:/tmp/my_proxy.pem . krb5.conf PKINIT (PKINIT krb5.conf options) pkinit_anchors () KDC . . X509_anchors . pkinit_cert_match PKINIT . ( ) PKINIT . . . Subject Issuer RFC 2253 Subject DN Issuer DN . : [relation-operator]component-rule ... : relation-operator && || . && . component-rule . . regular-expression regular-expression regular-expression extended-key-usage-list key-usage-list extended-key-usage-list (Extended Key Usage) . . : o pkinit o msScLogin o clientAuth o emailProtection key-usage-list (Key Usage) . . : o digitalSignature o keyEncipherment : pkinit_cert_match = ||.*DoE.*.*@EXAMPLE.COM pkinit_cert_match = &&msScLogin,clientAuth.*DoE.* pkinit_cert_match = msScLogin,clientAuthdigitalSignature pkinit_eku_checking KDC (EKU) . ( KDC pkinit SubjectAlternativeName Kerberos TGS EKU CA KDC .) krb5.conf : kpKDC KDC EKU id-pkinit-KPKdc RFC 4556 . kpServerAuth kpServerAuth KDC EKU id-kp-serverAuth . . none none KDC EKU . . pkinit_dh_min_bits - . 1024 2048 4096 . 2048 . pkinit_identities () X.509 . . X509_user_identity . pkinit_kdc_hostname KDC dNSName SAN (Subject Alternative Name) id-pkinit-san RFC 4556 . . KDC ( ) . pkinit_pool KDC . . pkinit_require_crl_checking . CRL . CRL CRL CA pkinit_require_crl_checking false . pkinit_require_crl_checking true CRL CA . CRL CA pkinit_require_crl_checking true . pkinit_revoke (CRL) KDC . . (PARAMETER EXPANSION) . default_keytab_name . : +------------------+----------------------------+ |%{TEMP} | | | | (Temporary directory) | +------------------+----------------------------+ |%{uid} | | | | | | | | | | (UID) | | | SID | | | | +------------------+----------------------------+ |%{euid} | | | | | | | | | | | | | SID | +------------------+----------------------------+ |%{USERID} | %{uid} | +------------------+----------------------------+ |%{null} | | +------------------+----------------------------+ |%{LIBDIR} | | | | | | | | +------------------+----------------------------+ |%{BINDIR} | | | | | | | | +------------------+----------------------------+ |%{SBINDIR} | | | | | | | | | | | +------------------+----------------------------+ |%{username} | () | | | | | | | | | | | | | | | | +------------------+----------------------------+ |%{APPDATA} | () | | | | | | Roaming | | | | | | | | | | +------------------+----------------------------+ |%{COMMON_APPDATA} | () | | | | | | | | | | | | | +------------------+----------------------------+ |%{LOCAL_APPDATA} | () | | | | | | | | | | | | | | | | +------------------+----------------------------+ |%{SYSTEM} | () | | | | | | | | | | +------------------+----------------------------+ |%{WINDOWS} | () | | | | | | | +------------------+----------------------------+ |%{USERCONFIG} | () | | | | | | | | | MIT krb5 | | | | | | | +------------------+----------------------------+ |%{COMMONCONFIG} | () | | | | | | | | | | | | | | | MIT krb5 | +------------------+----------------------------+ KRB5.CONF (SAMPLE KRB5.CONF FILE) krb5.conf : [libdefaults] default_realm = ATHENA.MIT.EDU dns_lookup_kdc = true dns_lookup_realm = false [realms] ATHENA.MIT.EDU = { kdc = kerberos.mit.edu kdc = kerberos-1.mit.edu kdc = kerberos-2.mit.edu admin_server = kerberos.mit.edu primary_kdc = kerberos.mit.edu } EXAMPLE.COM = { kdc = kerberos.example.com kdc = kerberos-1.example.com admin_server = kerberos.example.com } [domain_realm] mit.edu = ATHENA.MIT.EDU [capaths] ATHENA.MIT.EDU = { EXAMPLE.COM = . } EXAMPLE.COM = { ATHENA.MIT.EDU = . } (FILES) /etc/krb5.conf (SEE ALSO) syslog(3) (AUTHOR) MIT (COPYRIGHT) 1985-2024, MIT krb5 KRB5.CONF(5)