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

support for editing krb.conf file #45

Open
ssbarnea opened this issue Dec 9, 2016 · 1 comment
Open

support for editing krb.conf file #45

ssbarnea opened this issue Dec 9, 2016 · 1 comment

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_=_/}/'

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

2 participants