Hi,
while looking at expand_ccname_template() becasue of shadowing rewind()
I realized that there a some issues with some of the new krb5.conf
templates. This patch fixes them and adds some tests to avoid similar
issues in the future.
There is one change in behaviour. If the name in the %{} braces does not
match any of the known krb5.conf templates for UNIX the new code returns
an error while the old just returned something, which in most case will
not be the original input. Please tell me if you prefer the original
input in this case so that I can change the patch accordingly.
bye,
Sumit