How to configure MongoDB database to work with MongoDB plugin

How to configure MongoDB database to work with MongoDB plugin

115
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:57 PM


Objective


How to configure MongoDB database to work with MongoDB plugin

* Please note that the example below depicts MongoDB Community Server 4.2.12 being configured in Windows Server 2016 environment
** MongoDB 3.0, 3.2, 3.4, 4.2 should work with the plugin.


Environment


11.5;11.6;11.7;12.0;20.7;21.1 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Procedure


Prerequisites:
  • Latest version for MongoDB plugin: https://community.cyberark.com/marketplace/s/#a3550000000EiBoAAK-a3950000000jjUOAAY
  • Latest version for Credentials Management .NET SDK: https://community.cyberark.com/marketplace/s/#a3550000000EkA0AAK-a3950000000jjoOAAQ
  • MongoDB database at target machine: https://www.mongodb.com/try/download/community
  • Optional: NoSQLBooster (Or other GUI tool for MongoDB database)
  1. Create an Admin account in MongoDB database
    • db.createUser(
         {
           user: "mongoadmin",
           pwd: "password",
           
           roles: [{"role":"dbOwner","db":"admin"}],
         }
      )
  2. Create a user account in MongoDB database
    • db.createUser(
         {
           user: "mongouser",
           pwd: "password",
           
           roles: [{"role":"read","db":"admin"}],
         }
      )
  3. Edit the parameter 'bindIp' in mongod.cfg file
    • Change the bindIp from 127.0.0.1 to the target machine's IP address
    • For example: xx.xx.48.29mongod
  4. Add the Admin account in PVWA
    • admin
  5. Add the user account in PVWA and associate the admin account as reconcile account
    • user


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000014xfCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail