crudini icon indicating copy to clipboard operation
crudini copied to clipboard

support for editing krb.conf file

Open ssbarnea opened this issue 7 years ago • 1 comments

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?

ssbarnea avatar Dec 09 '16 11:12 ssbarnea

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 avatar Dec 09 '16 15:12 pixelb