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.

296 lines
5.6 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <lsarpc.h>
  4. #include <crypt.h>
  5. #include <ntsam.h>
  6. #include <logonmsv.h>
  7. static
  8. NTSTATUS
  9. LsaICallPackagePassthrough(
  10. IN PUNICODE_STRING AuthenticationPackage,
  11. IN PVOID ClientBufferBase,
  12. IN PVOID ProtocolSubmitBuffer,
  13. IN ULONG SubmitBufferLength,
  14. OUT PVOID * ProtocolReturnBuffer,
  15. OUT PULONG ReturnBufferLength,
  16. OUT PNTSTATUS ProtocolStatus
  17. )
  18. {
  19. return STATUS_PROCEDURE_NOT_FOUND;
  20. }
  21. static
  22. VOID
  23. NTAPI
  24. LsaIFreeHeap(
  25. IN PVOID pvMemory
  26. )
  27. {
  28. return;
  29. }
  30. static
  31. VOID
  32. NTAPI
  33. LsaIFreeReturnBuffer(
  34. IN PVOID Buffer
  35. )
  36. {
  37. return;
  38. }
  39. static
  40. VOID
  41. NTAPI
  42. LsaIFree_LSAPR_CR_CIPHER_VALUE (
  43. IN PLSAPR_CR_CIPHER_VALUE CipherValue
  44. )
  45. {
  46. return;
  47. }
  48. static
  49. VOID
  50. NTAPI
  51. LsaIFree_LSAPR_POLICY_INFORMATION (
  52. IN POLICY_INFORMATION_CLASS InformationClass,
  53. IN PLSAPR_POLICY_INFORMATION PolicyInformation
  54. )
  55. {
  56. return;
  57. }
  58. static
  59. VOID
  60. NTAPI
  61. LsaIFree_LSAPR_REFERENCED_DOMAIN_LIST (
  62. IN PLSAPR_REFERENCED_DOMAIN_LIST ReferencedDomains
  63. )
  64. {
  65. return;
  66. }
  67. static
  68. VOID
  69. NTAPI
  70. LsaIFree_LSAPR_TRANSLATED_NAMES (
  71. IN PLSAPR_TRANSLATED_NAMES TranslatedNames
  72. )
  73. {
  74. return;
  75. }
  76. static
  77. VOID
  78. NTAPI
  79. LsaIFree_LSAPR_TRANSLATED_SIDS (
  80. IN PLSAPR_TRANSLATED_SIDS TranslatedSids
  81. )
  82. {
  83. return;
  84. }
  85. static
  86. NTSTATUS
  87. LsaIGetNbAndDnsDomainNames(
  88. IN PUNICODE_STRING DomainName,
  89. OUT PUNICODE_STRING DnsDomainName,
  90. OUT PUNICODE_STRING NetbiosDomainName
  91. )
  92. {
  93. return STATUS_PROCEDURE_NOT_FOUND;
  94. }
  95. static
  96. NTSTATUS
  97. LsaIGetLogonGuid(
  98. IN PUNICODE_STRING pUserName,
  99. IN PUNICODE_STRING pUserDomain,
  100. IN PBYTE pBuffer,
  101. IN UINT BufferSize,
  102. OUT LPGUID pLogonGuid
  103. )
  104. {
  105. return STATUS_PROCEDURE_NOT_FOUND;
  106. }
  107. static
  108. VOID
  109. LsaINotifyPasswordChanged(
  110. IN PUNICODE_STRING NetbiosDomainName OPTIONAL,
  111. IN PUNICODE_STRING UserName,
  112. IN PUNICODE_STRING DnsDomainName OPTIONAL,
  113. IN PUNICODE_STRING Upn OPTIONAL,
  114. IN PUNICODE_STRING OldPassword,
  115. IN PUNICODE_STRING NewPassword,
  116. IN BOOLEAN Impersonating
  117. )
  118. {
  119. return;
  120. }
  121. static
  122. NTSTATUS
  123. NTAPI
  124. LsaIOpenPolicyTrusted(
  125. OUT PLSAPR_HANDLE PolicyHandle
  126. )
  127. {
  128. return STATUS_PROCEDURE_NOT_FOUND;
  129. }
  130. static
  131. NTSTATUS
  132. NTAPI
  133. LsaIQueryInformationPolicyTrusted(
  134. IN POLICY_INFORMATION_CLASS InformationClass,
  135. OUT PLSAPR_POLICY_INFORMATION *Buffer
  136. )
  137. {
  138. return STATUS_PROCEDURE_NOT_FOUND;
  139. }
  140. static
  141. NTSTATUS
  142. LsarClose(
  143. LSAPR_HANDLE *ObjectHandle
  144. )
  145. {
  146. return STATUS_PROCEDURE_NOT_FOUND;
  147. }
  148. static
  149. NTSTATUS
  150. LsarLookupSids(
  151. LSAPR_HANDLE PolicyHandle,
  152. PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
  153. PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
  154. PLSAPR_TRANSLATED_NAMES TranslatedNames,
  155. LSAP_LOOKUP_LEVEL LookupLevel,
  156. PULONG MappedCount
  157. )
  158. {
  159. return STATUS_PROCEDURE_NOT_FOUND;
  160. }
  161. static
  162. NTSTATUS
  163. LsarOpenSecret(
  164. LSAPR_HANDLE PolicyHandle,
  165. PLSAPR_UNICODE_STRING SecretName,
  166. ACCESS_MASK DesiredAccess,
  167. LSAPR_HANDLE *SecretHandle
  168. )
  169. {
  170. return STATUS_PROCEDURE_NOT_FOUND;
  171. }
  172. static
  173. NTSTATUS
  174. LsarQuerySecret(
  175. LSAPR_HANDLE SecretHandle,
  176. PLSAPR_CR_CIPHER_VALUE *EncryptedCurrentValue,
  177. PLARGE_INTEGER CurrentValueSetTime,
  178. PLSAPR_CR_CIPHER_VALUE *EncryptedOldValue,
  179. PLARGE_INTEGER OldValueSetTime
  180. )
  181. {
  182. return STATUS_PROCEDURE_NOT_FOUND;
  183. }
  184. static
  185. NTSTATUS
  186. LsaIFilterSids(
  187. PUNICODE_STRING TrustedDomainName,
  188. ULONG TrustDirection,
  189. ULONG TrustType,
  190. ULONG TrustAttributes,
  191. PSID Sid,
  192. NETLOGON_VALIDATION_INFO_CLASS InfoClass,
  193. PVOID SamInfo,
  194. PSID ResourceGroupDomainSid,
  195. PULONG ResourceGroupCount,
  196. PGROUP_MEMBERSHIP ResourceGroupIds
  197. )
  198. {
  199. return STATUS_PROCEDURE_NOT_FOUND;
  200. }
  201. static
  202. NTSTATUS
  203. LsaIFilterNamespace(
  204. IN PUNICODE_STRING TrustedDomainName,
  205. IN ULONG TrustDirection,
  206. IN ULONG TrustType,
  207. IN ULONG TrustAttributes,
  208. IN PUNICODE_STRING Namespace
  209. )
  210. {
  211. return STATUS_PROCEDURE_NOT_FOUND;
  212. }
  213. static
  214. NTSTATUS
  215. LsaIIsDomainWithinForest(
  216. IN UNICODE_STRING * TrustedDomainName,
  217. OUT BOOL * WithinForest,
  218. OUT OPTIONAL BOOL * ThisDomain,
  219. OUT OPTIONAL PSID * TrustedDomainSid,
  220. OUT OPTIONAL ULONG * TrustDirection,
  221. OUT OPTIONAL ULONG * TrustType,
  222. OUT OPTIONAL ULONG * TrustAttributes
  223. )
  224. {
  225. return STATUS_PROCEDURE_NOT_FOUND;
  226. }
  227. static
  228. BOOLEAN
  229. LsaINoMoreWin2KDomain()
  230. {
  231. return FALSE;
  232. }
  233. static
  234. NTSTATUS
  235. LsaISetTokenDacl(
  236. IN HANDLE Token
  237. )
  238. {
  239. return STATUS_PROCEDURE_NOT_FOUND;
  240. }
  241. //
  242. // !! WARNING !! The entries below must be in alphabetical order
  243. // and are CASE SENSITIVE (i.e., lower case comes last!)
  244. //
  245. DEFINE_PROCNAME_ENTRIES(lsasrv)
  246. {
  247. DLPENTRY(LsaICallPackagePassthrough)
  248. DLPENTRY(LsaIFilterSids)
  249. DLPENTRY(LsaIFreeHeap)
  250. DLPENTRY(LsaIFreeReturnBuffer)
  251. DLPENTRY(LsaIFree_LSAPR_CR_CIPHER_VALUE)
  252. DLPENTRY(LsaIFree_LSAPR_POLICY_INFORMATION)
  253. DLPENTRY(LsaIFree_LSAPR_REFERENCED_DOMAIN_LIST)
  254. DLPENTRY(LsaIFree_LSAPR_TRANSLATED_NAMES)
  255. DLPENTRY(LsaIFree_LSAPR_TRANSLATED_SIDS)
  256. DLPENTRY(LsaIGetLogonGuid)
  257. DLPENTRY(LsaIGetNbAndDnsDomainNames)
  258. DLPENTRY(LsaIIsDomainWithinForest)
  259. DLPENTRY(LsaINoMoreWin2KDomain)
  260. DLPENTRY(LsaINotifyPasswordChanged)
  261. DLPENTRY(LsaIOpenPolicyTrusted)
  262. DLPENTRY(LsaIQueryInformationPolicyTrusted)
  263. DLPENTRY(LsaISetTokenDacl)
  264. DLPENTRY(LsarClose)
  265. DLPENTRY(LsarLookupSids)
  266. DLPENTRY(LsarOpenSecret)
  267. DLPENTRY(LsarQuerySecret)
  268. };
  269. DEFINE_PROCNAME_MAP(lsasrv)