jcmturner / gokrb5

Pure Go Kerberos library for clients and services
Apache License 2.0
725 stars 248 forks source link

KVN is always 0 #539

Open karman-docker opened 8 months ago

karman-docker commented 8 months ago

Same as issue https://github.com/jcmturner/gokrb5/issues/456.

My keytab file has non-zero knv. I can see that using klist tool or on the AD itself.

But when I load the keytab file using the APIs of this library from keytab.String() I can see that knv is always 0.

This is causing client login fail, as kvns don't match.

Denis-shl commented 7 months ago

Hello, tell me, does kvno overflow the int data type?

karman-docker commented 7 months ago

Hi @Denis-shl if you are asking me, in my case the KVNO that I see on the AD server and using klist tool was single digit number (I think it was 3 or 4), but when stringify my keytab file using keytab.String() from this package, I see kano is zero.