Giter Club home page Giter Club logo

Comments (3)

jcmturner avatar jcmturner commented on August 22, 2024

Hi, You are in the guts of the library here. If you are just using one of the etypes implemented you shouldn't need to worry too much about these inner workings. However I will try to answer your bullet points:

  • protocolKey: this is the key obtained directly from the keytab or the sessionkey. From this the actual encryption key is derived using a method specific to the etype that also takes in the usage number.
  • What the data is depends on what you are trying to achieve. Not sure I have enough to answer this one.
  • usage: these are the usage constants as defined in RFC 4210 you'll find them all at https://github.com/jcmturner/gokrb5/blob/master/iana/keyusage/constants.go

I'm afraid if you are going to operate at this level you'll need to get very familiar with the kerberos RFCs.

You can see how I have created an encrypted authenticator here:
https://github.com/jcmturner/gokrb5/blob/master/messages/APReq.go#L66 which uses the crypto.GetEncryptedData method.

from gokrb5.

edganiukov avatar edganiukov commented on August 22, 2024

@jcmturner thank you for the answer.
Actually I was just following README and stuck on checksum calculation - https://github.com/jcmturner/gokrb5/blob/master/README.md#generic-kerberos-client.
My general goal - authenticate against Kafka Brokers with SASL and GSSAPI described here https://kafka.apache.org/protocol#sasl_handshake. As you see, not really much information about authentication.

from gokrb5.

jcmturner avatar jcmturner commented on August 22, 2024

gokrb5 doesn't currently implement SASL but does have some implementation of GSSAPI, that was needed to support SPNEGO, which may be of use to you.

I think what's needed is to implement some of these RFCs
https://tools.ietf.org/html/rfc4752#section-3.1
https://tools.ietf.org/html/rfc4422

from gokrb5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.