jcmturner / gokrb5

Pure Go Kerberos library for clients and services
Apache License 2.0
717 stars 243 forks source link

Store Pre Auth Data sequence for future use #505

Open NeilGerring opened 1 year ago

NeilGerring commented 1 year ago

I found a bug when using the AffirmLogin function where if the TGT has expired, the attempt to get a new TGT might fail due to not providing the pre-auth data sequence if pre-auth is required.

This PR is a super small change to simply store it and re-use it similar to how the pre-auth encryption type is re-used.