Managing Customized Database Resource Types and Resources

Password Manager Pro supports managing certain resource types by default and allows you to add new resource types as required. In addition to that, you can also create and configure new database resource types with a customized set of database attributes. Doing so will allow you to add the uniquely configured MS SQL Server, MySQL Server, PostgreSQL, Oracle DB Server, or Sybase ASE databases in your organization as the new resources in Password Manager Pro. With this, you will gain the flexibility to perform password resets, password verifications, account discovery, and SQL auto logon session processes for the uniquely configured databases, tailored to your specific needs, precisely empowering the organization to align database resources in Password Manager Pro on a required basis.

Notes: The attributes of the default database resource types cannot be edited. To manage your uniquely configured database via Password Manager Pro, follow these steps:

  1. Create a new database resource type.
  2. Utilize default database templates as required with customized attributes and create a new database resource type.
  3. Manually add the database that meets the attributes of the newly added resource type as a resource within Password Manager Pro.
  4. Perform various actions over the database resource seamlessly.

This document will help you learn various processes involved in creating and managing custom database resources via Password Manager Pro.

  1. Role - Managing Customized Database Resources
  2. Creating the JDBC Properties
  3. Creating a Customized Database Resource Type
  4. Editing the Customized Database Resource Type at Resource Level
  5. Editing the Customized Database Resource Types in Bulk

1. Role - Managing Customized Database Resources

Users with Privileged Administrator and Administrator roles can manage customized database resource types and can manage JDBC properties in Password Manager Pro by default. To grant this responsibility to other users, you can create a custom role with Manage JDBC Properties, Configure Custom Database Connections, and Manage Custom Database Connections privileges enabled.

  • Manage JDBC Properties - Allow users to manage the JDBC properties.
  • Configure Custom Database Connections - Allow users to create, edit, and manage new database resource types with customized database attributes.
  • Manage Custom Database Connections - Allow users to create, edit, and manage new database resource types with the customized database attributes and to approve/decline the new resource type request.

Users assigned with the above privileges can configure and manage customized database resource types and manage JDBC properties accordingly via Password Manager Pro.

2. Creating the JDBC Properties

By default, Password Manager Pro provides several JDBC properties that supports connecting with the SQL server. To add new JDBC properties for your database resource type,

  1. Navigate to Admin >> Resource Config >> JDBC Properties.
  2. Note: Users can also open the JDBC Properties page from the database resource type creation page by clicking the View JDBC Properties link which will be present at the top-right corner.

  3. Click Add and select the JDBC property to be added i.e Connection Property/Connection URL/System Property.
  4. Enter the Property Key and Property Value, and click Save to add the new JDBC property.

3. Creating a Customized Database Resource Type

To create a custom database resource type,

  1. Navigate to Admin >> Resource Config >> Resource Types.
  2. Click Add to add a new resource type.
  3. Enter the Name of the new resource type and provide it an Icon as desired.
  4. From the General tab, select the Resource Attributes and Account Attributes as required for the new resource.
  5. Click the Advanced tab, select the Existing Resource Type radio button, and select the existing database resource type to use it as a template for the new database resource type attributes.
  6. Next, configure the database connection details as per your requirement in the following fields:
    1. Protocol: This field will be available when you select only MS SQL Server as your template for your new database resource type. Select either MS SQL JTDS or MS SQL JDBC from the dropdown.
    2. Class Name: Enter the Java class name used to make the JDBC connection. This driver class name will be available inside the driver JAR file provided by the SQL vendor.
    3. Driver JAR: Select the driver JAR file present inside the <PMP_Installation_Folder>/Lib/DBDrivers directory. The driver JAR file must be loaded manually into the Password Manager Pro server to establish the JDBC connection.
    4. Connection URL: Select the connection URL from the dropdown to establish a connection to the specific database.
    5. Connection Properties: Choose the default property values from the dropdown or enter the key-value pairs to add them to the configuration details.
    6. System Properties: Enter the JDBC system properties in this field. These properties will be used to establish the connection to the SQL server. Upon closing the session, the system properties will be reset.
    7. Accounts Discovery Query: Click the edit icon beside this field to change the default account discovery query. Here, enter the SQL query needed to fetch the list of user accounts available in the SQL server.
    8. Change Password Query: Click the edit icon beside this field to modify the default change password query. Here, enter the SQL query needed to modify the password of a user account in the SQL server.
  7. Enabling the 'Allow users to configure database properties at a resource level' checkbox will allow resource owners and users with Full Access permission to modify the attributes of the database resources created under this new resource type.
  8. Note: Please exercise caution while validating all the configured values for the database connection. Misconfigured values may lead to SQL Injection and other security breaches.

    For example, if your desired SQL server is NoSQL server such as MongoDB, select an SQL server from the dropdown and proceed with the configuration:

    1. Download and move the MongoDB driver JAR file to the Password Manager Pro directory.
    2. On the Add Resource Type page, select the existing 'PostgreSQL' resource type template and input the following:
      1. Class Name: mongodb.jdbc.MongoDriver
      2. Driver JAR: Select the downloaded driver JAR
      3. Connection URL: jdbc:mongodb://%HOSTNAME%:%DB_PORT%/%DB_NAME%
      4. Accounts Discovery Query: db.system.users.find()
      5. Change Password Query: db.system.users.update({ "user": "%USERNAME%" }, { $set: { "pwd": "%NEWPASSWORD%" }})

    Input connection and system properties as needed and click Save.

  9. Upon saving the new resource type, an approval request will be sent to the users (administrators/privileged administrators/custom users) who have the Manage Custom Database Connections privilege.
  10. Note: The approval is required for adding or changing the custom database resource type attributes, not for editing or managing customized database resources at resource level in Password Manager Pro.

    Note: The resource type addition request can be approved by navigating to Admin >> Access Review >> DB Resource Configuration Request or directly from the notification list at the top pane of the user interface.

4. Editing the Customized Database Resource Type at Resource Level

To edit the customized database resource that you have created via a new resource type, do the following steps:

  1. Navigate to the Resources tab.
  2. Click the Resource Actions icon beside the respective customized database resource that you want to edit and select the Configure Database Connection option.
  3. In the dialog box that opens, modify the relevant field as required and click Save.
  4. Note: The resources created using the default database resource types cannot be edited.

5. Editing Customized Database Resource Types in Bulk

While creating a new customized database resource type, you can select any of the available default database resource types as the template. If you have created many new resource types with diverse existing database templates, you can also edit them in bulk at the resource level as required. To do so,

  1. Navigate to the Resources tab and select the customized database resource from the list of resources.
  2. Click the Resource Actions button and select Configure >> Database Connections.
  3. To view the selected database resources click the View Selected Resource(s) link at the top-right corner.
  4. In the dialog box that opens, modify the relevant fields as required and click Save.

For example, you have established two new resource type categories, named AMP Database and KMP Database, each equipped with connection templates of MS SQL Server and PostgreSQL databases. Under each resource type category, three database resources have been added. Now, if you need to make bulk modifications to the connection properties of the three resources under the AMP Database resource type and the system properties of the three resources under the KMP Database resource type, follow these steps:

  1. Choose the resources requiring bulk modifications.
  2. In the dialogue box that appears, modify the connection properties under the MS SQL Server section.
  3. Note: This action will alter the connection properties for all resources created using the new resource type with MS SQL Server template among the selected ones.

  4. Next, navigate to the PostgreSQL section and modify the system properties.
  5. Note: This will alter the system properties for all resources created using the new resource type with the PostgreSQL template among the selected ones.

    If you have selected resources from default resource types along with those from customized database resource types, only the attributes for resources from customized types will be altered, leaving the default resource types unchanged.

Top