go-msrpc icon indicating copy to clipboard operation
go-msrpc copied to clipboard

Documentation for gssapi.Mechanism

Open rtpt-erikgeiser opened this issue 6 months ago • 1 comments

I'm trying to implement my own authentication mechanism, and I can't figure out whether to use the methods in gssapi.Mechanism or gssapi.MechanismEx and how to implement the wrapping and signing methods.

So far, I managed to get authentication to work by implementing Init using Windows build-in authentication API InitializeSecurityContext. However, I can't figure out how to make the signing and sealing work with MakeSignature/VerifySignature/EncryptMessage/DecryptMessage. I just don't understand what part of the input token has to be encrypted/signed and how the token payloads map to the SecBufferDesc of the Windows API. It would help a lot if there was documentation on how to implement a gssapi.Mechanism.

rtpt-erikgeiser avatar Aug 16 '24 14:08 rtpt-erikgeiser