Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswdData ¶
type ChangePasswdData struct { NewPasswd []byte `asn1:"explicit,tag:0"` TargName types.PrincipalName `asn1:"explicit,optional,tag:1"` TargRealm string `asn1:"generalstring,optional,explicit,tag:2"` }
ChangePasswdData is the payload to a password change message.
func (*ChangePasswdData) Marshal ¶
func (c *ChangePasswdData) Marshal() ([]byte, error)
Marshal ChangePasswdData into a byte slice.
type Reply ¶
type Reply struct { MessageLength int Version int APREPLength int APREP messages.APRep KRBPriv messages.KRBPriv KRBError messages.KRBError IsKRBError bool ResultCode uint16 Result string }
Reply message for a password change.
type Request ¶
Request message for changing password.
func ChangePasswdMsg ¶
func ChangePasswdMsg(cname types.PrincipalName, realm, password string, tkt messages.Ticket, sessionKey types.EncryptionKey) (r Request, k types.EncryptionKey, err error)
ChangePasswdMsg generate a change password request and also return the key needed to decrypt the reply.
Click to show internal directories.
Click to hide internal directories.