examples.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Package examples provides example decoding of NDR byte streams
  2. package examples
  3. import "gopkg.in/jcmturner/rpc.v1/mstypes"
  4. type KerbValidationInfo struct {
  5. LogOnTime mstypes.FileTime
  6. LogOffTime mstypes.FileTime
  7. KickOffTime mstypes.FileTime
  8. PasswordLastSet mstypes.FileTime
  9. PasswordCanChange mstypes.FileTime
  10. PasswordMustChange mstypes.FileTime
  11. EffectiveName mstypes.RPCUnicodeString
  12. FullName mstypes.RPCUnicodeString
  13. LogonScript mstypes.RPCUnicodeString
  14. ProfilePath mstypes.RPCUnicodeString
  15. HomeDirectory mstypes.RPCUnicodeString
  16. HomeDirectoryDrive mstypes.RPCUnicodeString
  17. LogonCount uint16
  18. BadPasswordCount uint16
  19. UserID uint32
  20. PrimaryGroupID uint32
  21. GroupCount uint32
  22. GroupIDs []mstypes.GroupMembership `ndr:"pointer,conformant"`
  23. UserFlags uint32
  24. UserSessionKey mstypes.UserSessionKey
  25. LogonServer mstypes.RPCUnicodeString
  26. LogonDomainName mstypes.RPCUnicodeString
  27. LogonDomainID mstypes.RPCSID `ndr:"pointer"`
  28. Reserved1 [2]uint32 // Has 2 elements
  29. UserAccountControl uint32
  30. SubAuthStatus uint32
  31. LastSuccessfulILogon mstypes.FileTime
  32. LastFailedILogon mstypes.FileTime
  33. FailedILogonCount uint32
  34. Reserved3 uint32
  35. SIDCount uint32
  36. ExtraSIDs []mstypes.KerbSidAndAttributes `ndr:"pointer,conformant"`
  37. ResourceGroupDomainSID mstypes.RPCSID `ndr:"pointer"`
  38. ResourceGroupCount uint32
  39. ResourceGroupIDs []mstypes.GroupMembership `ndr:"pointer,conformant"`
  40. }