mirror of https://github.com/tongzx/nt5src
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
716 B
38 lines
716 B
# -
|
|
# This test verifies whether RevokeAccessRights works
|
|
# -
|
|
# Initialize new ACL
|
|
Exec InitNewACL
|
|
|
|
# Set the current user to rayland\actest1 adn add it to the local access request list
|
|
Set TrusteeName rayland\actest1
|
|
ToggleAccessPerm COM_RIGHTS_EXECUTE
|
|
AddTrustee AccessRequestList
|
|
|
|
# Call GrantAccessRights
|
|
Exec GrantAccessRights
|
|
|
|
# Change client's security context
|
|
SwitchClientCtx
|
|
actest1
|
|
rayland
|
|
|
|
|
|
# Call IsAccessPermitted
|
|
Exec IsAccessPermitted
|
|
|
|
# Add current trustee to local trustee list
|
|
AddTrustee TrusteeList
|
|
|
|
# Call RevokeExplicitAccessRights
|
|
Exec RevokeExplicitAccessRights
|
|
|
|
# Call IsAccessPermitted
|
|
Exec IsAccessPermitted
|
|
|
|
# Call GetExplicitAccessRights
|
|
Exec GetExplicitAccessRights
|
|
|
|
# Kill server
|
|
Quit
|
|
|