Troubleshooting Guide
v5.12.0
Search this version
Troubleshooting Guide
Troubleshooting Guide
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Customize Internal PostgreSQL User
Copy Markdown
Open in ChatGPT
Open in Claude
MetaDefender ICAP Server once installed, it will automatically create an internal PostgreSQL user for operation purpose, and so far that user name is auto randomized by MetaDefender ICAP Server and non adjustable (usr_<random characters>).
Now MetaDefender ICAP Server supports database system admin to define and change to their own PostgreSQL user instead.
That can be done in both deployment scenarios:
- Product installation (pre-setup)
- Product configuration (post-setup)
- Internal PG username has to be matched with Postgresql naming conventions https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
- We support backup/restore credential files mechanism. In case of customizing PostgreSQL user failure, the old credential file will be restored.
- Currently we do not support internal PostgreSQL user contains backslash(), double quotes (“), it cannot begin with digits (0-9) and length must be less than 64 bytes
Product installation (pre-setup)
In the ignition file, there are 2 keys needed for this user setup:
- dbserver/private_username
- dbserver/private_password
- If
private_usernameis not on the Postgres server, MetaDefender ICAP Server creates an internal user. - If
private_usernamematches the user of the Postgres server. The user on the Postgres is overridden, MetaDefender ICAP Server doesn’t create a new internal user.
Product configuration (post-setup)
Using the CLI tool bundled with MetaDefender ICAP Server to modify PostgreSQL internal user while MetaDefender ICAP Server is running:
- Windows: C:\Program Files\OPSWAT\Metadefender ICAP Server\mdicapsrv-custom-internal-pg-user.exe
- Linux: /usr/sbin/mdicapsrv-custom-internal-pg-user
You can switch to other user with password optionally:
Bash
mdicapsrv-custom-internal-pg-user [-c <PATH TO CONFIG DB>] -nu <NEW USERNAME> [-np <NEW PASSWORD>]or you can drop the current user
Bash
mdicapsrv-custom-internal-pg-user [-c <PATH TO CONFIG DB>] -rAll options and arguments:
- -h\t: (--help) instruction
- -c\t: (--configuration-path) default value: HKEY_LOCAL_MACHINE\Software\OPSWAT\Metadefender ICAP Server on Windows or /etc/mdicapsrv/mdicapsrv.conf on Linux
- -nu\t: (--new-username) New username must be started with usr_
- -np\t: (--new-password) new password
- -r\t: (--remove-current-user) remove your current user
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
PostgreSQL User Privilege RequirementsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
