Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realmd::krb_config unable to set multiple kdc + nesting does not work correctly... #54

Open
kratan opened this issue Oct 19, 2018 · 0 comments

Comments

@kratan
Copy link

kratan commented Oct 19, 2018

Hi,

realmd::krb_config:
  logging:
    default: FILE:/var/log/krb5libs.log
  libdefaults:
    dns_lookup_realm: true
    dns_lookup_kdc: true
    kdc_timesync: 1
    rdns: false
    ccache_type: 4
    ticket_lifetime: '24h'
    forwardable: 'true'
    proxiable: 'true'
    default_realm: "%{lookup('domain::krbname')}"
    #default_ccache_name: 'FILE:/tmp/krb5cc_%{euid}'
    default_ccache_name: "KEYRING:persistent:%{literal('%')}{uid}"
  domain_realm:
    .%{lookup('domain::krbname')}: "%{lookup('domain::krbname')}"
    "%{lookup('domain::name')}": "%{lookup('domain::krbname')}"
    .%{lookup('domain::name_at')}: "%{lookup('domain::krbname')}"
    "%{lookup('domain::name_at')}": "%{lookup('domain::krbname')}"
  realms:
    "%{lookup('domain::krbname')}":
      kdc: "%{lookup('domain::controllers.0')}"
      kdc: "%{lookup('domain::controllers.1')}"
      admin_server: "%{lookup('domain::controllers.0')}"
  appdefaults:
    pam:
      "%{lookup('domain::krbname')}":
        cache: "KEYRING:persistent:%{literal('%')}{uid}"
        ignore_k5login: true

renders to:

[appdefaults]
pam = {
EXAMPLE.LOCALDOMAIN = {"cache"=>"KEYRING:persistent:%{uid}", "ignore_k5login"=>true}
}
----> see here, nesting is not render correctly
[domain_realm]
.EXAMPLE.LOCALDOMAIN = EXAMPLE.LOCALDOMAIN
.localdomain = EXAMPLE.LOCALDOMAIN
example.localdomain = EXAMPLE.LOCALDOMAIN
localdomain = EXAMPLE.LOCALDOMAIN
[libdefaults]
ccache_type = 4
default_ccache_name = KEYRING:persistent:%{uid}
default_realm = EXAMPLE.LOCALDOMAIN
dns_lookup_kdc = true
dns_lookup_realm = true
forwardable = true
kdc_timesync = 1
proxiable = true
rdns = false
ticket_lifetime = 24h
[logging]
default = FILE:/var/log/krb5libs.log
[realms]
EXAMPLE.LOCALDOMAIN = {
admin_server = dc1.example.localdomain
kdc = dc2.example.localdomain
}
----> second kdc entry is missing

greets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant