package kadmin
import "github.com/jcmturner/gokrb5/v8/kadmin"
Package kadmin provides Kerberos administration capabilities.
Index ¶
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.
func (*Reply) Decrypt ¶
func (m *Reply) Decrypt(key types.EncryptionKey) error
Decrypt the encrypted part of the KRBError within the change password Reply.
func (*Reply) Unmarshal ¶
Unmarshal a byte slice into a Reply.
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.
func (*Request) Marshal ¶
Marshal a Request into a byte slice.
Source Files ¶
changepasswddata.go message.go passwd.go
- Version
- v8.4.2
- Published
- Nov 18, 2020
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.