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.

411 lines
11 KiB

  1. Case 0: Just acme.com TLN
  2. Old Ftinfo:
  3. (null)
  4. New Ftinfo:
  5. TLN: acme.com
  6. Result Ftinfo:
  7. TLN: acme.com
  8. Case 1: acme.com and ms.com TLN
  9. Old Ftinfo:
  10. (null)
  11. New Ftinfo:
  12. TLN: acme.com
  13. TLN: ms.com
  14. Result Ftinfo:
  15. TLN: acme.com
  16. TLN: ms.com ( TlnNew)
  17. Case 2: Same but switch the alphabetical order
  18. Old Ftinfo:
  19. (null)
  20. New Ftinfo:
  21. TLN: acme.com
  22. TLN: z.au
  23. Result Ftinfo:
  24. TLN: z.au ( TlnNew)
  25. TLN: acme.com
  26. Case 3: Have no TLN for the forest (Should fail w/ ERROR_INVALID_PARAMETER)
  27. Old Ftinfo:
  28. (null)
  29. New Ftinfo:
  30. TLN: z.au
  31. DsMergeForestTrustInformationW failed: Status = 87 0x57 ERROR_INVALID_PARAMETER
  32. Case 4: Build acme.com again
  33. Old Ftinfo:
  34. (null)
  35. New Ftinfo:
  36. TLN: acme.com
  37. Result Ftinfo:
  38. TLN: acme.com
  39. Case 5: Add a new ms.com TLN
  40. Old Ftinfo:
  41. TLN: acme.com
  42. New Ftinfo:
  43. TLN: acme.com
  44. TLN: ms.com
  45. Result Ftinfo:
  46. TLN: acme.com
  47. TLN: ms.com ( TlnNew)
  48. Case 6: Ensure the new bit doesn't go away
  49. Old Ftinfo:
  50. TLN: acme.com
  51. TLN: ms.com ( TlnNew)
  52. New Ftinfo:
  53. TLN: acme.com
  54. TLN: ms.com
  55. Result Ftinfo:
  56. TLN: acme.com
  57. TLN: ms.com ( TlnNew)
  58. Case 7: Exact match on corp.acme.com TLN
  59. Old Ftinfo:
  60. (null)
  61. New Ftinfo:
  62. TLN: corp.acme.com
  63. Result Ftinfo:
  64. TLN: corp.acme.com
  65. Case 8: Only child of corp.acme.com TLN (Should fail w/ ERROR_INVALID_PARAMETER)
  66. Old Ftinfo:
  67. (null)
  68. New Ftinfo:
  69. TLN: x.corp.acme.com
  70. DsMergeForestTrustInformationW failed: Status = 87 0x57 ERROR_INVALID_PARAMETER
  71. Case 9: Ensure a disabled TLN stays disabled
  72. Old Ftinfo:
  73. TLN: acme.com
  74. TLN: ms.com ( TlnAdmin)
  75. New Ftinfo:
  76. TLN: acme.com
  77. TLN: ms.com
  78. Result Ftinfo:
  79. TLN: acme.com
  80. TLN: ms.com ( TlnAdmin)
  81. Case 10: Ensure all bits are preserved in a TLN
  82. Old Ftinfo:
  83. TLN: acme.com
  84. TLN: ms.com ( TlnNew TlnAdmin TlnConflict 0xFFFFFFF8)
  85. New Ftinfo:
  86. TLN: acme.com
  87. TLN: ms.com
  88. Result Ftinfo:
  89. TLN: acme.com
  90. TLN: ms.com ( TlnNew TlnAdmin TlnConflict 0xFFFFFFF8)
  91. Case 11: Ensure a disabled TLN stays disabled in a child
  92. Old Ftinfo:
  93. TLN: acme.com
  94. TLN: ms.com ( TlnAdmin)
  95. New Ftinfo:
  96. TLN: acme.com
  97. TLN: a.ms.com
  98. Result Ftinfo:
  99. TLN: acme.com
  100. TLN: a.ms.com ( TlnAdmin)
  101. Case 12: Ensure a disabled TLN does *not* disable a parent
  102. Old Ftinfo:
  103. TLN: acme.com
  104. TLN: b.a.ms.com ( TlnAdmin)
  105. New Ftinfo:
  106. TLN: acme.com
  107. TLN: a.ms.com
  108. Result Ftinfo:
  109. TLN: acme.com
  110. TLN: a.ms.com ( TlnNew)
  111. Case 13: Ensure a TLNEX is ignored in new
  112. Old Ftinfo:
  113. (null)
  114. New Ftinfo:
  115. TLN: acme.com
  116. TEX: a.acme.com
  117. Result Ftinfo:
  118. TLN: acme.com
  119. Case 14: Ensure a TLNEX is copied from old
  120. Old Ftinfo:
  121. TLN: acme.com
  122. TEX: a.acme.com
  123. New Ftinfo:
  124. TLN: acme.com
  125. Result Ftinfo:
  126. TLN: acme.com
  127. TEX: a.acme.com
  128. Case 15: Trivial single domain forest
  129. Old Ftinfo:
  130. (null)
  131. New Ftinfo:
  132. TLN: acme.com
  133. Dom: corp.acme.com (CORP_NB) S-1-5-1
  134. Result Ftinfo:
  135. TLN: acme.com
  136. Dom: corp.acme.com (CORP_NB) S-1-5-1
  137. Case 16: Ensure a disabled domain remains disabled
  138. Old Ftinfo:
  139. TLN: acme.com
  140. Dom: corp.acme.com (CORP_NB) ( SidAdmin) S-1-5-1
  141. New Ftinfo:
  142. TLN: acme.com
  143. Dom: corp.acme.com (CORP_NB) S-1-5-1
  144. Result Ftinfo:
  145. TLN: acme.com
  146. Dom: corp.acme.com (CORP_NB) ( SidAdmin) S-1-5-1
  147. Case 17: Drop duplicate new TLN entries
  148. Old Ftinfo:
  149. (null)
  150. New Ftinfo:
  151. TLN: acme.com
  152. TLN: acme.com
  153. Result Ftinfo:
  154. TLN: acme.com
  155. Case 18: ... even if the duplicate is subordinate
  156. Old Ftinfo:
  157. (null)
  158. New Ftinfo:
  159. TLN: acme.com
  160. TLN: a.acme.com
  161. Result Ftinfo:
  162. TLN: acme.com
  163. Case 19: ... even if there are many of them
  164. Old Ftinfo:
  165. (null)
  166. New Ftinfo:
  167. TLN: acme.com
  168. TLN: acme.com
  169. TLN: a.acme.com
  170. TLN: b.acme.com
  171. TLN: ms.com
  172. Result Ftinfo:
  173. TLN: acme.com
  174. TLN: ms.com ( TlnNew)
  175. Case 20: Try multiple domain entries
  176. Old Ftinfo:
  177. (null)
  178. New Ftinfo:
  179. TLN: acme.com
  180. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  181. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  182. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  183. Result Ftinfo:
  184. TLN: acme.com
  185. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  186. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  187. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  188. Case 21: Duplicate Sids are bad
  189. Old Ftinfo:
  190. (null)
  191. New Ftinfo:
  192. TLN: acme.com
  193. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  194. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  195. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-1
  196. Result Ftinfo:
  197. TLN: acme.com
  198. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  199. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  200. Case 22: ... even if there are many of them
  201. Old Ftinfo:
  202. (null)
  203. New Ftinfo:
  204. TLN: acme.com
  205. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  206. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  207. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-1
  208. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-1
  209. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-1
  210. Result Ftinfo:
  211. TLN: acme.com
  212. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  213. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  214. Case 23: Ensure multiple disabled domains remain disabled
  215. Old Ftinfo:
  216. TLN: acme.com
  217. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  218. Dom: c1.corp.acme.com (CORP_NB1) ( SidAdmin) S-1-5-2
  219. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  220. Dom: c3.corp.acme.com (CORP_NB3) ( SidAdmin) S-1-5-4
  221. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  222. New Ftinfo:
  223. TLN: acme.com
  224. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  225. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  226. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  227. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  228. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  229. Result Ftinfo:
  230. TLN: acme.com
  231. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  232. Dom: c1.corp.acme.com (CORP_NB1) ( SidAdmin) S-1-5-2
  233. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  234. Dom: c3.corp.acme.com (CORP_NB3) ( SidAdmin) S-1-5-4
  235. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  236. Case 24: Don't let an old disabled domain entry go away
  237. Old Ftinfo:
  238. TLN: acme.com
  239. Dom: corp.acme.com (CORP_NB) ( SidAdmin) S-1-5-1
  240. New Ftinfo:
  241. TLN: acme.com
  242. Result Ftinfo:
  243. TLN: acme.com
  244. Dom: corp.acme.com (CORP_NB) ( SidAdmin) S-1-5-1
  245. Case 25: ... even if there's no TLN for the domain entry
  246. Old Ftinfo:
  247. TLN: acme.com
  248. Dom: ms.com (CORP_NB) ( SidAdmin) S-1-5-1
  249. New Ftinfo:
  250. TLN: acme.com
  251. Result Ftinfo:
  252. TLN: acme.com
  253. Dom: ms.com (CORP_NB) ( SidAdmin) S-1-5-1
  254. Case 26: Add a new domain
  255. Old Ftinfo:
  256. TLN: acme.com
  257. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  258. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  259. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  260. New Ftinfo:
  261. TLN: acme.com
  262. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  263. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  264. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  265. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  266. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  267. Result Ftinfo:
  268. TLN: acme.com
  269. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  270. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  271. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  272. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  273. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  274. Case 27: Delete old domains
  275. Old Ftinfo:
  276. TLN: acme.com
  277. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  278. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  279. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  280. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  281. Dom: c4.corp.acme.com (CORP_NB4) S-1-5-5
  282. New Ftinfo:
  283. TLN: acme.com
  284. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  285. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  286. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  287. Result Ftinfo:
  288. TLN: acme.com
  289. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  290. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  291. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  292. Case 28: Ensure there's a TLN for every domain
  293. Old Ftinfo:
  294. (null)
  295. New Ftinfo:
  296. TLN: acme.com
  297. Dom: corp.ms.com (CORP_NB0) S-1-5-1
  298. Dom: c1.corp.ms.com (CORP_NB1) S-1-5-2
  299. Dom: c2.corp.ms.com (CORP_NB2) S-1-5-3
  300. Result Ftinfo:
  301. TLN: acme.com
  302. TLN: corp.ms.com
  303. Dom: corp.ms.com (CORP_NB0) S-1-5-1
  304. Dom: c1.corp.ms.com (CORP_NB1) S-1-5-2
  305. Dom: c2.corp.ms.com (CORP_NB2) S-1-5-3
  306. Case 29: Ensure all of the possible flag bits are preserved
  307. Old Ftinfo:
  308. TLN: acme.com
  309. Dom: corp.acme.com (CORP_NB) ( SidAdmin SidConflict NbAdmin NbConflict 0xFFFFFFF0) S-1-5-1
  310. New Ftinfo:
  311. TLN: acme.com
  312. Dom: corp.acme.com (CORP_NB) S-1-5-1
  313. Result Ftinfo:
  314. TLN: acme.com
  315. Dom: corp.acme.com (CORP_NB) ( SidAdmin SidConflict NbAdmin NbConflict 0xFFFFFFF0) S-1-5-1
  316. Case 30: Ensure that a netbios admin disabled bit doesn't disappear
  317. Old Ftinfo:
  318. TLN: acme.com
  319. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  320. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  321. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  322. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  323. Dom: c4.corp.acme.com (CORP_NB4) ( SidAdmin) S-1-5-5
  324. New Ftinfo:
  325. TLN: acme.com
  326. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  327. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  328. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  329. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  330. Result Ftinfo:
  331. TLN: acme.com
  332. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  333. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  334. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  335. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  336. Dom: c4.corp.acme.com (CORP_NB4) ( SidAdmin) S-1-5-5
  337. Case 31: ... but that a netbios conflict does
  338. Old Ftinfo:
  339. TLN: acme.com
  340. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  341. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  342. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  343. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  344. Dom: c4.corp.acme.com (CORP_NB4) ( SidConflict) S-1-5-5
  345. New Ftinfo:
  346. TLN: acme.com
  347. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  348. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  349. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  350. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  351. Result Ftinfo:
  352. TLN: acme.com
  353. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  354. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  355. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  356. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  357. Case 32: ... Get it right even if the NB entry moves to different sid
  358. Old Ftinfo:
  359. TLN: acme.com
  360. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  361. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  362. Dom: c2.corp.acme.com (CORP_NB3) S-1-5-3
  363. Dom: c3.corp.acme.com (CORP_NB2) ( SidAdmin SidConflict) S-1-5-4
  364. New Ftinfo:
  365. TLN: acme.com
  366. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  367. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  368. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  369. Dom: c3.corp.acme.com (CORP_NB3) S-1-5-4
  370. Result Ftinfo:
  371. TLN: acme.com
  372. Dom: corp.acme.com (CORP_NB0) S-1-5-1
  373. Dom: c1.corp.acme.com (CORP_NB1) S-1-5-2
  374. Dom: c2.corp.acme.com (CORP_NB2) S-1-5-3
  375. Dom: c3.corp.acme.com (CORP_NB3) ( SidAdmin SidConflict) S-1-5-4
  376. Yee haw. We're done.