Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. nwauth.h
  5. Abstract:
  6. Header for data structures provided by the NetWare
  7. authentication package.
  8. Author:
  9. Rita Wong (ritaw) 4-Feb-1994
  10. Revision History:
  11. --*/
  12. #ifndef _NWAUTH_INCLUDED_
  13. #define _NWAUTH_INCLUDED_
  14. #include <nwcons.h>
  15. //
  16. // Name of the authentication package.
  17. //
  18. #define NW_AUTH_PACKAGE_NAME "NETWARE_AUTHENTICATION_PACKAGE_V1_0"
  19. //
  20. // LsaCallAuthenticationPackage() submission and response
  21. // message types.
  22. //
  23. typedef enum _NWAUTH_MESSAGE_TYPE {
  24. NwAuth_GetCredential = 0,
  25. NwAuth_SetCredential
  26. } NWAUTH_MESSAGE_TYPE, *PNWAUTH_MESSAGE_TYPE;
  27. //
  28. // NwAuth_GetCredential submit buffer and response
  29. //
  30. typedef struct _NWAUTH_GET_CREDENTIAL_REQUEST {
  31. NWAUTH_MESSAGE_TYPE MessageType;
  32. LUID LogonId;
  33. } NWAUTH_GET_CREDENTIAL_REQUEST, *PNWAUTH_GET_CREDENTIAL_REQUEST;
  34. typedef struct _NWAUTH_GET_CREDENTIAL_RESPONSE {
  35. WCHAR UserName[NW_MAX_USERNAME_LEN + 1];
  36. WCHAR Password[NW_MAX_PASSWORD_LEN + 1];
  37. } NWAUTH_GET_CREDENTIAL_RESPONSE, *PNWAUTH_GET_CREDENTIAL_RESPONSE;
  38. //
  39. // NwAuth_SetCredential submit buffer
  40. //
  41. typedef struct _NWAUTH_SET_CREDENTIAL_REQUEST {
  42. NWAUTH_MESSAGE_TYPE MessageType;
  43. LUID LogonId;
  44. WCHAR UserName[NW_MAX_USERNAME_LEN + 1];
  45. WCHAR Password[NW_MAX_PASSWORD_LEN + 1];
  46. } NWAUTH_SET_CREDENTIAL_REQUEST, *PNWAUTH_SET_CREDENTIAL_REQUEST;
  47. #define NW_ENCODE_SEED 0x5C
  48. #define NW_ENCODE_SEED2 0xA9
  49. #define NW_ENCODE_SEED3 0x83
  50. #endif // _NWAUTH_INCLUDED_