windows-nt/Source/XPSP1/NT/com/oleutest/accctrl/tstsuite/test11.in

39 lines
712 B
Plaintext
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
# -
# This test verifies that one can specify a SID to identify a trustee
# -
# Initialize a new ACL
Exec InitNewACL
# Set current trustee to rayland\actest1
Set TrusteeName rayland\actest1
ToggleAccessPerm COM_RIGHTS_EXECUTE
GetSIDForCurrentTrustee
Set TrusteeForm TRUSTEE_IS_SID
# Add trustee to local access request list
AddTrustee AccessRequestList
# Call GrantAccessRights
Exec GrantAccessRights
# Change client's security context to rayland\actest1
SwitchClientCtx
actest1
rayland
# Call IsAccessPermitted
Exec IsAccessPermitted
# Call IsAccessPermitted again to see if the caching mechanism works
Exec IsAccessPermitted
# Take a look at the ACL
Exec GetExplicitAccessRights
# Kill server
Quit