-
Notifications
You must be signed in to change notification settings - Fork 19
Cannot get ticket. #1
Comments
Well the code is fine. Albeit you don't need to specify the values of CredConfig. The preauth timestamp is generated here: The error is from here: Gotcha well it seems kerberos has a more strict view of ASN.1 generalized time then the standard ASN.1: To fix this try the following in github.com/jmckaskill/asn1: func marshalGeneralizedTime(out *forkableWriter, t time.Time) (err error) {
I'll test it against active directory later. If it works I'll check it in. |
Alright! It seems I'm now getting "ASN.1 structure error: explicitly tagged member didn't match" errors. |
I'm getting the same error as Yugge above when attempting doing kerb.NewCredential(..) against an AD server. It appears the tag is as follows: |
Same here while authenticating with an MIT Kerberos v5 v1.13 server: ASN.1 structure error: explicitly tagged member didn't match |
Add support for AES encryption
Hello!
I'm trying to use kerberos for authentication in an web project I'm working on. However I get
"Aug 18 22:02:54 auth krb5kdc1042: preauth (timestamp) verify failure: ASN.1 length doesn't match expected value"
when I try to get a ticket with your library.
The following is the code I used:
http://pastie.org/4546030
I'm pretty sure that it's something I'm supposed to do that I missed, since I'm new to kerberos. But I appreciate any help I can get.
Thanks!
//Yugge
The text was updated successfully, but these errors were encountered: