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.

38 lines
712 B

  1. # -
  2. # This test verifies that one can specify a SID to identify a trustee
  3. # -
  4. # Initialize a new ACL
  5. Exec InitNewACL
  6. # Set current trustee to rayland\actest1
  7. Set TrusteeName rayland\actest1
  8. ToggleAccessPerm COM_RIGHTS_EXECUTE
  9. GetSIDForCurrentTrustee
  10. Set TrusteeForm TRUSTEE_IS_SID
  11. # Add trustee to local access request list
  12. AddTrustee AccessRequestList
  13. # Call GrantAccessRights
  14. Exec GrantAccessRights
  15. # Change client's security context to rayland\actest1
  16. SwitchClientCtx
  17. actest1
  18. rayland
  19. # Call IsAccessPermitted
  20. Exec IsAccessPermitted
  21. # Call IsAccessPermitted again to see if the caching mechanism works
  22. Exec IsAccessPermitted
  23. # Take a look at the ACL
  24. Exec GetExplicitAccessRights
  25. # Kill server
  26. Quit