Enabling User Access Control Example

User access control works in conjunction with user authentication. To get user access control to work, you first have to enable user authentication as described in the Enabling User Authentication.

The example security policy file example_policy.txt has a predefined user named user1 who has been configured to have the following permissions for all spaces in the default metaspace named ms:

  • seeder
  • read
  • write
  • encrypt

Procedure

  1. Change directory to the security subdirectory of the examples.
  2. Open the file example_policy.txt with a text editor.
  3. Locate the following line:
    access_control=false;default=deny
  4. Change it to the following to enable user access control:
    access_control=true;default=deny
  5. Locate the line:
    group1 = user1
  6. Change user1 to your <domain\username.
  7. Save the file.