Skip to content
New issue

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

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

Already on GitHub? # to your account

support for editing krb.conf file #45

Open
ssbarnea opened this issue Dec 9, 2016 · 2 comments
Open

support for editing krb.conf file #45

ssbarnea opened this issue Dec 9, 2016 · 2 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Dec 9, 2016

krb.conf file is mostly an ini file but it still have something that makes in incompatible with crudini:

[realms]
EXAMPLE.COM = {
  kdc = kerberos.bos.example.com
  kdc = kerberos.corp.example.com
  default_domain = EXAMPLE.COM
}

Is it possible to edit this file with crudini? If not is there a workaround?

@pixelb
Copy link
Owner

pixelb commented Dec 9, 2016

This would overlap with supporting lists. I.E. EXAMPLE.COM is a multiline item, and we might support editing items in the list. Anyway currently deleting the curly brackets gets you a "valid" ini file.
So you could preprocess like:

sed 's/= {/=/; s/^}/ignorelb_=_/'

And postprocess like:

sed 's/=$/= {/; s/^ignorelb_=_/}/'

@pixelb
Copy link
Owner

pixelb commented Nov 6, 2024

Note kerberos config files can also be indented, which can be handled with the --ini-options=ignoreindent option

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

No branches or pull requests

2 participants