Source code of Windows XP (NT5)
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.

328 lines
8.7 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. ntldap.h
  5. Abstract:
  6. This is the header that defines NT specific server LDAP extensions.
  7. Environments :
  8. Win32 user mode
  9. --*/
  10. #ifndef NT_LDAP_H
  11. #define NT_LDAP_H
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //
  19. //
  20. // Server controls section
  21. //
  22. //
  23. // Permissive Modify Control. No Data.
  24. //
  25. #define LDAP_SERVER_PERMISSIVE_MODIFY_OID "1.2.840.113556.1.4.1413"
  26. #define LDAP_SERVER_PERMISSIVE_MODIFY_OID_W L"1.2.840.113556.1.4.1413"
  27. //
  28. // Show Deleted Control. No Data.
  29. //
  30. #define LDAP_SERVER_SHOW_DELETED_OID "1.2.840.113556.1.4.417"
  31. #define LDAP_SERVER_SHOW_DELETED_OID_W L"1.2.840.113556.1.4.417"
  32. //
  33. // Cross Domain Move Control. Data as follows
  34. // SEQUENCE {
  35. // Name OCTET STRING
  36. // }
  37. //
  38. #define LDAP_SERVER_CROSSDOM_MOVE_TARGET_OID "1.2.840.113556.1.4.521"
  39. #define LDAP_SERVER_CROSSDOM_MOVE_TARGET_OID_W L"1.2.840.113556.1.4.521"
  40. //
  41. // Notification. No Data.
  42. //
  43. #define LDAP_SERVER_NOTIFICATION_OID "1.2.840.113556.1.4.528"
  44. #define LDAP_SERVER_NOTIFICATION_OID_W L"1.2.840.113556.1.4.528"
  45. //
  46. // Lazy Commit. No Data.
  47. //
  48. #define LDAP_SERVER_LAZY_COMMIT_OID "1.2.840.113556.1.4.619"
  49. #define LDAP_SERVER_LAZY_COMMIT_OID_W L"1.2.840.113556.1.4.619"
  50. //
  51. // Security Descriptor Flag. Data as follows
  52. // SEQUENCE {
  53. // Flags INTEGER
  54. // }
  55. //
  56. #define LDAP_SERVER_SD_FLAGS_OID "1.2.840.113556.1.4.801"
  57. #define LDAP_SERVER_SD_FLAGS_OID_W L"1.2.840.113556.1.4.801"
  58. //
  59. // Tree Delete. No Data.
  60. //
  61. #define LDAP_SERVER_TREE_DELETE_OID "1.2.840.113556.1.4.805"
  62. #define LDAP_SERVER_TREE_DELETE_OID_W L"1.2.840.113556.1.4.805"
  63. //
  64. // Attribute Scoped Query Request:
  65. // SEQUENCE {
  66. // controlType 1.2.840.113556.1.4.1504
  67. // controlValue string
  68. // criticality TRUE
  69. // }
  70. //
  71. // Attribute Scoped Query Response:
  72. // SEQUENCE {
  73. // result ENUMERATED {
  74. // success (0),
  75. // invalidAttributeSyntax (21),
  76. // unwillingToPerform (53),
  77. // affectsMultipleDSAs (71),
  78. // }
  79. // }
  80. //
  81. #define LDAP_SERVER_ASQ_OID "1.2.840.113556.1.4.1504"
  82. #define LDAP_SERVER_ASQ_OID_W L"1.2.840.113556.1.4.1504"
  83. //
  84. // DirSync operation. Data as follows
  85. // SEQUENCE {
  86. // Flags INTEGER
  87. // Size INTEGER
  88. // Cookie OCTET STRING
  89. // }
  90. //
  91. #define LDAP_SERVER_DIRSYNC_OID "1.2.840.113556.1.4.841"
  92. #define LDAP_SERVER_DIRSYNC_OID_W L"1.2.840.113556.1.4.841"
  93. //
  94. // Return extended DNs. No Data.
  95. //
  96. #define LDAP_SERVER_EXTENDED_DN_OID "1.2.840.113556.1.4.529"
  97. #define LDAP_SERVER_EXTENDED_DN_OID_W L"1.2.840.113556.1.4.529"
  98. //
  99. // Tell DC which server to verify with that a DN exist. Data as follows
  100. // SEQUENCE {
  101. // Flags INTEGER,
  102. // ServerName OCTET STRING // unicode server string
  103. // }
  104. //
  105. #define LDAP_SERVER_VERIFY_NAME_OID "1.2.840.113556.1.4.1338"
  106. #define LDAP_SERVER_VERIFY_NAME_OID_W L"1.2.840.113556.1.4.1338"
  107. //
  108. // Tells server not to generate referrals
  109. //
  110. #define LDAP_SERVER_DOMAIN_SCOPE_OID "1.2.840.113556.1.4.1339"
  111. #define LDAP_SERVER_DOMAIN_SCOPE_OID_W L"1.2.840.113556.1.4.1339"
  112. //
  113. // Server Search Options. Allows the client to pass in flags to control
  114. // various search behaviours. Data as follows
  115. // SEQUENCE {
  116. // Flags INTEGER
  117. // }
  118. //
  119. #define LDAP_SERVER_SEARCH_OPTIONS_OID "1.2.840.113556.1.4.1340"
  120. #define LDAP_SERVER_SEARCH_OPTIONS_OID_W L"1.2.840.113556.1.4.1340"
  121. //
  122. // search option flags
  123. //
  124. #define SERVER_SEARCH_FLAG_DOMAIN_SCOPE 0x1 // no referrals generated
  125. #define SERVER_SEARCH_FLAG_PHANTOM_ROOT 0x2 // search all NCs subordinate
  126. // to search base
  127. //
  128. // End of Server controls
  129. //
  130. //
  131. //
  132. // Operational Attributes
  133. //
  134. #define LDAP_OPATT_BECOME_DOM_MASTER "becomeDomainMaster"
  135. #define LDAP_OPATT_BECOME_DOM_MASTER_W L"becomeDomainMaster"
  136. #define LDAP_OPATT_BECOME_RID_MASTER "becomeRidMaster"
  137. #define LDAP_OPATT_BECOME_RID_MASTER_W L"becomeRidMaster"
  138. #define LDAP_OPATT_BECOME_SCHEMA_MASTER "becomeSchemaMaster"
  139. #define LDAP_OPATT_BECOME_SCHEMA_MASTER_W L"becomeSchemaMaster"
  140. #define LDAP_OPATT_RECALC_HIERARCHY "recalcHierarchy"
  141. #define LDAP_OPATT_RECALC_HIERARCHY_W L"recalcHierarchy"
  142. #define LDAP_OPATT_SCHEMA_UPDATE_NOW "schemaUpdateNow"
  143. #define LDAP_OPATT_SCHEMA_UPDATE_NOW_W L"schemaUpdateNow"
  144. #define LDAP_OPATT_BECOME_PDC "becomePdc"
  145. #define LDAP_OPATT_BECOME_PDC_W L"becomePdc"
  146. #define LDAP_OPATT_FIXUP_INHERITANCE "fixupInheritance"
  147. #define LDAP_OPATT_FIXUP_INHERITANCE_W L"fixupInheritance"
  148. #define LDAP_OPATT_INVALIDATE_RID_POOL "invalidateRidPool"
  149. #define LDAP_OPATT_INVALIDATE_RID_POOL_W L"invalidateRidPool"
  150. #define LDAP_OPATT_ABANDON_REPL "abandonReplication"
  151. #define LDAP_OPATT_ABANDON_REPL_W L"abandonReplication"
  152. #define LDAP_OPATT_DO_GARBAGE_COLLECTION "doGarbageCollection"
  153. #define LDAP_OPATT_DO_GARBAGE_COLLECTION_W L"doGarbageCollection"
  154. //
  155. // Root DSE Attributes
  156. //
  157. #define LDAP_OPATT_SUBSCHEMA_SUBENTRY "subschemaSubentry"
  158. #define LDAP_OPATT_SUBSCHEMA_SUBENTRY_W L"subschemaSubentry"
  159. #define LDAP_OPATT_CURRENT_TIME "currentTime"
  160. #define LDAP_OPATT_CURRENT_TIME_W L"currentTime"
  161. #define LDAP_OPATT_SERVER_NAME "serverName"
  162. #define LDAP_OPATT_SERVER_NAME_W L"serverName"
  163. #define LDAP_OPATT_NAMING_CONTEXTS "namingContexts"
  164. #define LDAP_OPATT_NAMING_CONTEXTS_W L"namingContexts"
  165. #define LDAP_OPATT_DEFAULT_NAMING_CONTEXT "defaultNamingContext"
  166. #define LDAP_OPATT_DEFAULT_NAMING_CONTEXT_W L"defaultNamingContext"
  167. #define LDAP_OPATT_SUPPORTED_CONTROL "supportedControl"
  168. #define LDAP_OPATT_SUPPORTED_CONTROL_W L"supportedControl"
  169. #define LDAP_OPATT_HIGHEST_COMMITTED_USN "highestCommitedUSN"
  170. #define LDAP_OPATT_HIGHEST_COMMITTED_USN_W L"highestCommitedUSN"
  171. #define LDAP_OPATT_SUPPORTED_LDAP_VERSION "supportedLDAPVersion"
  172. #define LDAP_OPATT_SUPPORTED_LDAP_VERSION_W L"supportedLDAPVersion"
  173. #define LDAP_OPATT_SUPPORTED_LDAP_POLICIES "supportedLDAPPolicies"
  174. #define LDAP_OPATT_SUPPORTED_LDAP_POLICIES_W L"supportedLDAPPolicies"
  175. #define LDAP_OPATT_SCHEMA_NAMING_CONTEXT "schemaNamingContext"
  176. #define LDAP_OPATT_SCHEMA_NAMING_CONTEXT_W L"schemaNamingContext"
  177. #define LDAP_OPATT_CONFIG_NAMING_CONTEXT "configurationNamingContext"
  178. #define LDAP_OPATT_CONFIG_NAMING_CONTEXT_W L"configurationNamingContext"
  179. #define LDAP_OPATT_ROOT_DOMAIN_NAMING_CONTEXT "rootDomainNamingContext"
  180. #define LDAP_OPATT_ROOT_DOMAIN_NAMING_CONTEXT_W L"rootDomainNamingContext"
  181. #define LDAP_OPATT_SUPPORTED_SASL_MECHANISM "supportedSASLMechanisms"
  182. #define LDAP_OPATT_SUPPORTED_SASL_MECHANISM_W L"supportedSASLMechanisms"
  183. #define LDAP_OPATT_DNS_HOST_NAME "dnsHostName"
  184. #define LDAP_OPATT_DNS_HOST_NAME_W L"dnsHostName"
  185. #define LDAP_OPATT_LDAP_SERVICE_NAME "ldapServiceName"
  186. #define LDAP_OPATT_LDAP_SERVICE_NAME_W L"ldapServiceName"
  187. #define LDAP_OPATT_DS_SERVICE_NAME "dsServiceName"
  188. #define LDAP_OPATT_DS_SERVICE_NAME_W L"dsServiceName"
  189. #define LDAP_OPATT_SUPPORTED_CAPABILITIES "supportedCapabilities"
  190. #define LDAP_OPATT_SUPPORTED_CAPABILITIES_W L"supportedCapabilities"
  191. //
  192. // End of Operational attributes
  193. //
  194. //
  195. //
  196. // Server Capabilities
  197. //
  198. //
  199. // NT5 Active Directory
  200. //
  201. #define LDAP_CAP_ACTIVE_DIRECTORY_OID "1.2.840.113556.1.4.800"
  202. #define LDAP_CAP_ACTIVE_DIRECTORY_OID_W L"1.2.840.113556.1.4.800"
  203. #define LDAP_CAP_ACTIVE_DIRECTORY_V51_OID "1.2.840.113556.1.4.1670"
  204. #define LDAP_CAP_ACTIVE_DIRECTORY_V51_OID_W L"1.2.840.113556.1.4.1670"
  205. //
  206. // End of capabilities
  207. //
  208. //
  209. //
  210. // Matching Rules
  211. //
  212. //
  213. // BIT AND
  214. //
  215. #define LDAP_MATCHING_RULE_BIT_AND "1.2.840.113556.1.4.803"
  216. #define LDAP_MATCHING_RULE_BIT_AND_W L"1.2.840.113556.1.4.803"
  217. //
  218. // BIT OR
  219. //
  220. #define LDAP_MATCHING_RULE_BIT_OR "1.2.840.113556.1.4.804"
  221. #define LDAP_MATCHING_RULE_BIT_OR_W L"1.2.840.113556.1.4.804"
  222. //
  223. //
  224. // Extended Requests
  225. //
  226. //
  227. // Fast bind mode.
  228. //
  229. #define LDAP_SERVER_FAST_BIND_OID "1.2.840.113556.1.4.1781"
  230. #define LDAP_SERVER_FAST_BIND_OID_W L"1.2.840.113556.1.4.1781"
  231. #ifdef __cplusplus
  232. }
  233. #endif
  234. #endif // NT_LDAP_H