jcmturner / gokrb5

Pure Go Kerberos library for clients and services
Apache License 2.0
723 stars 245 forks source link

config.New() doesn't initialise ETypeIDs for corresponding ETypes #467

Closed snqk closed 2 years ago

snqk commented 2 years ago

When defining a krb.conf as code, using config.Config, the library doesn't initialise ETypeIDs for corresponding ETypes.

https://github.com/jcmturner/gokrb5/blob/663478bf457f1fc3275973bea5b7b787cd332015/v8/config/krb5conf.go#L98-L117

Notably DefaultTGSEnctypeIDs, DefaultTktEnctypeIDs & PermittedEnctypeIDs.

This isn't a problem when parsing a config file however:

https://github.com/jcmturner/gokrb5/blob/663478bf457f1fc3275973bea5b7b787cd332015/v8/config/krb5conf.go#L307-L309