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.

32 lines
695 B

  1. # -
  2. # Deny access right from a user, perform access check for the same user, and obtain the ACL
  3. # -
  4. # Initialize a new ACL
  5. Exec InitNewACL
  6. # Add Rayland\actest1 to the local access request list
  7. Set TrusteeName RayLand\AcTest1
  8. ToggleAccessPerm COM_RIGHTS_EXECUTE
  9. AddTrustee AccessRequestList
  10. # Call DenyAccessRights
  11. Exec DenyAccessRights
  12. # Change the client's security context
  13. SwitchClientCtx
  14. actest1
  15. rayland
  16. # Call IsAccessPermitted
  17. Exec IsAccessPermitted
  18. # Call IsAccessPermitted again to see if the caching mechanism works
  19. Exec IsAccessPermitted
  20. # Call GetExplicitAccessRights to obtain the ACL
  21. Exec GetExplicitAccessRights
  22. # Shut down the server
  23. Quit