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

# -
# 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