Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MongoDB can be configured to require authentication for added security. However, this will restrict access to Square 9 software that needs to connect to MongoDB. The steps below detail how to to set this up.

...

Example: ssBatchPortal.exe.config

...

Configure GlobalForms 10

Note

The way that GlobalCapture 3.0 configures MongoDB Authentication is that there is one user in the admin database that has access to all databases. To communicate this to GlobalForms you have to tell it which database to authenticate against, for a GC30 configured MongoAuthentication configuration you can do this by appending ?authSource=admin to the end of the Connection string.

GlobalForms 10 connects to MongoDB differently than GlobalSearch/GlobalCapture. To enable authentication, you must include the username/password in the MongoDB URL.

...

  1. While you still have the Mongo shell open, run the following commands. This user must be your Square 9 service account. This user is SSAdministrator by default. This is also case-sensitive. "WorkflowEngine" is not the same as "workflowengine".

    Code Block
    languagejs
    use WorkflowEngine
    
    Image RemovedImage Added
  2. Repeat the previous step for the ServiceEngine, PortalSecurity, and CaptureWorkflow databases. To do this, replace "use WorkflowEngine" with "use ServiceEngine", etc.

  3. Repeat the commands for the GlobalForms database. Make sure you use the username and password picked out when editing the default.config file (see "Configure GlobalForms 10" above).

...

Info

If you add all of the correct keys and still cannot get the Batch Portals to connect, make sure this key exists in the batchportal.exe.config file:  <add key="Mongo" value="mongodb://localhost/?safe=true"></add>

Filter by label (Content by label)
showLabelsfalse
max5
spacesS9SKB
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel in ( "howto" , "globalcapture" , "mongodb" , "globalaction" , "portal" ) and type = "page" and space = "S9SKB"
labelshowto mongodb globalcapture globalaction portal

...