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.

203 lines
3.8 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <ntsam.h>
  4. #include <ntlsa.h>
  5. #include <crypt.h>
  6. #include <samrpc.h>
  7. #include <samisrv.h>
  8. static
  9. NTSTATUS
  10. SamIAccountRestrictions(
  11. IN SAM_HANDLE UserHandle,
  12. IN PUNICODE_STRING LogonWorkstation,
  13. IN PUNICODE_STRING Workstations,
  14. IN PLOGON_HOURS LogonHours,
  15. OUT PLARGE_INTEGER LogoffTime,
  16. OUT PLARGE_INTEGER KickoffTime
  17. )
  18. {
  19. return STATUS_PROCEDURE_NOT_FOUND;
  20. }
  21. static
  22. NTSTATUS
  23. SamIConnect(
  24. IN PSAMPR_SERVER_NAME ServerName,
  25. OUT SAMPR_HANDLE *ServerHandle,
  26. IN ACCESS_MASK DesiredAccess,
  27. IN BOOLEAN TrustedClient
  28. )
  29. {
  30. return STATUS_PROCEDURE_NOT_FOUND;
  31. }
  32. static
  33. VOID
  34. SamIFreeSidAndAttributesList(
  35. IN PSID_AND_ATTRIBUTES_LIST List
  36. )
  37. {
  38. return;
  39. }
  40. static
  41. VOID
  42. SamIFree_SAMPR_GET_GROUPS_BUFFER (
  43. PSAMPR_GET_GROUPS_BUFFER Source
  44. )
  45. {
  46. return;
  47. }
  48. static
  49. VOID
  50. SamIFree_SAMPR_ULONG_ARRAY (
  51. PSAMPR_ULONG_ARRAY Source
  52. )
  53. {
  54. return;
  55. }
  56. static
  57. VOID
  58. SamIFree_SAMPR_USER_INFO_BUFFER (
  59. PSAMPR_USER_INFO_BUFFER Source,
  60. USER_INFORMATION_CLASS Branch
  61. )
  62. {
  63. return;
  64. }
  65. static
  66. NTSTATUS
  67. SamIGetUserLogonInformationEx(
  68. IN SAMPR_HANDLE DomainHandle,
  69. IN ULONG Flags,
  70. IN PUNICODE_STRING AccountName,
  71. IN ULONG WhichFields,
  72. OUT PSAMPR_USER_INFO_BUFFER * Buffer,
  73. OUT PSID_AND_ATTRIBUTES_LIST ReverseMembership,
  74. OUT OPTIONAL SAMPR_HANDLE * UserHandle
  75. )
  76. {
  77. return STATUS_PROCEDURE_NOT_FOUND;
  78. }
  79. static
  80. NTSTATUS
  81. SamIRetrievePrimaryCredentials(
  82. IN SAMPR_HANDLE UserHandle,
  83. IN PUNICODE_STRING PackageName,
  84. OUT PVOID * Credentials,
  85. OUT PULONG CredentialSize
  86. )
  87. {
  88. return STATUS_PROCEDURE_NOT_FOUND;
  89. }
  90. static
  91. NTSTATUS
  92. SamIUpdateLogonStatistics(
  93. IN SAM_HANDLE UserHandle,
  94. IN PSAM_LOGON_STATISTICS LogonStats
  95. )
  96. {
  97. return STATUS_PROCEDURE_NOT_FOUND;
  98. }
  99. static
  100. NTSTATUS
  101. SamrCloseHandle(
  102. SAMPR_HANDLE *SamHandle
  103. )
  104. {
  105. return STATUS_PROCEDURE_NOT_FOUND;
  106. }
  107. static
  108. NTSTATUS
  109. SamrGetGroupsForUser(
  110. SAMPR_HANDLE UserHandle,
  111. PSAMPR_GET_GROUPS_BUFFER *Groups
  112. )
  113. {
  114. return STATUS_PROCEDURE_NOT_FOUND;
  115. }
  116. static
  117. NTSTATUS
  118. SamrLookupNamesInDomain(
  119. SAMPR_HANDLE DomainHandle,
  120. ULONG Count,
  121. RPC_UNICODE_STRING Names[ ],
  122. PSAMPR_ULONG_ARRAY RelativeIds,
  123. PSAMPR_ULONG_ARRAY Use
  124. )
  125. {
  126. return STATUS_PROCEDURE_NOT_FOUND;
  127. }
  128. static
  129. NTSTATUS
  130. SamrOpenDomain(
  131. SAMPR_HANDLE ServerHandle,
  132. ACCESS_MASK DesiredAccess,
  133. PRPC_SID DomainId,
  134. SAMPR_HANDLE *DomainHandle
  135. )
  136. {
  137. return STATUS_PROCEDURE_NOT_FOUND;
  138. }
  139. static
  140. NTSTATUS
  141. SamrOpenUser(
  142. SAMPR_HANDLE DomainHandle,
  143. ACCESS_MASK DesiredAccess,
  144. ULONG UserId,
  145. SAMPR_HANDLE *UserHandle
  146. )
  147. {
  148. return STATUS_PROCEDURE_NOT_FOUND;
  149. }
  150. static
  151. NTSTATUS
  152. SamrQueryInformationUser(
  153. SAMPR_HANDLE UserHandle,
  154. USER_INFORMATION_CLASS UserInformationClass,
  155. PSAMPR_USER_INFO_BUFFER *Buffer
  156. )
  157. {
  158. return STATUS_PROCEDURE_NOT_FOUND;
  159. }
  160. //
  161. // !! WARNING !! The entries below must be in alphabetical order
  162. // and are CASE SENSITIVE (i.e., lower case comes last!)
  163. //
  164. DEFINE_PROCNAME_ENTRIES(samsrv)
  165. {
  166. DLPENTRY(SamIAccountRestrictions)
  167. DLPENTRY(SamIConnect)
  168. DLPENTRY(SamIFreeSidAndAttributesList)
  169. DLPENTRY(SamIFree_SAMPR_GET_GROUPS_BUFFER)
  170. DLPENTRY(SamIFree_SAMPR_ULONG_ARRAY)
  171. DLPENTRY(SamIFree_SAMPR_USER_INFO_BUFFER)
  172. DLPENTRY(SamIGetUserLogonInformationEx)
  173. DLPENTRY(SamIRetrievePrimaryCredentials)
  174. DLPENTRY(SamIUpdateLogonStatistics)
  175. DLPENTRY(SamrCloseHandle)
  176. DLPENTRY(SamrGetGroupsForUser)
  177. DLPENTRY(SamrLookupNamesInDomain)
  178. DLPENTRY(SamrOpenDomain)
  179. DLPENTRY(SamrOpenUser)
  180. DLPENTRY(SamrQueryInformationUser)
  181. };
  182. DEFINE_PROCNAME_MAP(samsrv)