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.

38 lines
754 B

  1. # -
  2. # This test verifies whether RevokeAccessRights works
  3. # -
  4. # Initialize new ACL
  5. Exec InitNewACL
  6. # Set the current user to rayland\actest1 adn add it to the local access request list
  7. Set TrusteeName rayland\actest1
  8. ToggleAccessPerm COM_RIGHTS_EXECUTE
  9. AddTrustee AccessRequestList
  10. # Call GrantAccessRights
  11. Exec GrantAccessRights
  12. # Change client's security context
  13. SwitchClientCtx
  14. actest1
  15. rayland
  16. # Call IsAccessPermitted
  17. Exec IsAccessPermitted
  18. # Add current trustee to local trustee list
  19. AddTrustee TrusteeList
  20. # Call RevokeExplicitAccessRights
  21. Exec RevokeExplicitAccessRights
  22. # Call IsAccessPermitted
  23. Exec IsAccessPermitted
  24. # Call GetExplicitAccessRights
  25. Exec GetExplicitAccessRights
  26. # Kill server
  27. Quit