Set credentials for Ranger Usersync custom keystore

How to set the custom keystore file location and password for a Ranger Usersync custom keystore.

Ranger Usersync role creates a default keystore file, ranger.usersync.keystore.file during restart. UNIX authentication in Ranger Admin requires this keystore file. The keystore file takes a password from the ranger.usersync.keystore.password configuration, exposed in Cloudera Manager supporting CDP 7.1.6 and higher.

Setting custom keystore credentials for Ranger Usersync overrides the default credentials.

To set Ranger Usersync custom keystore credentials:

  1. In Cloudera Manager > Ranger > Configuration, type Ranger Usersync Advanced Configuration Snippet in the search field.
  2. In Ranger Usersync Advanced Configuration Snippet (Safety Valve) for conf/ranger-ugsync-site.xml , enter the following:
    1. In Name, type: ranger.usersync.keystore.file
    2. In Value, type: <keystore_file_path>
  3. In Cloudera Manager > Ranger > Configuration, type Usersync Keystore Password in the search field.
  4. In ranger.usersync.keystore.password, type a new password.
  5. Click Save Changes.
  6. Restart Ranger Usersync.
Ranger uses the custom keystore file location and password values instead of the default values.