Creating user databases on a single device

Expand all | Collapse all

For the components of the identity service to work, you need to configure the connection to the PostgreSQL databases and manually create the databases that will store information about LDAP users and groups in PostgreSQL. For more information on managing databases, please refer to documentation on the official PostgreSQL website.

To configure PostgreSQL databases:

  1. Install PostgreSQL:

    sudo apt install postgresql -y

  2. Go to the /etc/parsec directory, open the mswitch.conf file for editing and change the value of the zero_if_notfound parameter to yes to connect to the databases.
  3. Restart PostgreSQL:

    sudo systemctl restart postgresql

  4. Connect to the PostgreSQL console:

    sudo -u postgres psql

  5. Create the uaws user that will be used by the user identity service components:

    CREATE USER uaws WITH PASSWORD '<password>';

  6. Create a user database for the MapApp component.

    Commands for creating the MapApp database

  7. Create a database of LDAP user groups for the GroupApp component.

    Commands for creating the GroupApp database

  8. Quit PostgreSQL:

    \q

The databases are prepared and can be used by the components of the user identity service.

Page top