go-msrpc
go-msrpc copied to clipboard
Documentation for gssapi.Mechanism
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
.