Configure the mongo.conf.json for a MongoDB Secured Authentication - Fluid Topics - 3.8

Install Fluid Topics on Multiple Servers

Product
Fluid Topics
FT_Version
3.8
Platform
RHEL
Category
Technical Notes
language
English

Once the secured authentication is enabled on the MongoDB server, update the mongo.conf.json file on the Indexing server, on the Back Office Server, and on the Front server, to authenticate through Scram-Sha-1 method.:

  1. Edit the following file:

    As antidot user

    /usr/local/afs7/Fluid-Topics/conf/-/mongo.conf.json

  2. Add the following lines to the file:

    As antidot user

    {
    "hosts": [
    ...
    ],
    "authentication": {
    "scramSha1": {
    "username": "$USER_NAME",
    "password": "$PASSWORD",
    "database": "admin"
    }
    }
    }

    Where database is the authentication database associated to the user. Its value is usually admin.

For more information about the user authentication database, consult the MongoDB official documentation.

If $PASSWORD contains special characters, then it must be encoded in accordance with the following nomenclature: https://www.w3schools.com/tags/ref_urlencode.asp
Example: myUserAdmin2:abc#!!!!@123 should be myUserAdmin2:abc%23%21%21%21%21%40123