cd /var/mqm/web/installations/Installation1/servers/mqweb/
cp /opt/mqm/web/mq/samp/configuration/basic_registry.xml .
cp mqwebuser.xml mqwebuser_old.xml
rm mqwebuser.xml
cp basic_registry.xml mqwebuser.xml
|
Adjust the permissions of the mqwebuser.xml file with the command:
By default, the REST API and IBM MQ Console are only available on the same host as the mqweb server. Enable remote connections to the mqweb server with the following command:
setmqweb properties -k httpHost -v "*"
|

Still in the MQ console configuration examples folder, we can find other files with other examples (templates) of possible configurations:

Analyzing the “ldap_registry.xml” file, we can check the configuration example for using the MQ console with LDAP authentication:

In the example in this post, we use the “basic_registry.xml” file to obtain a basic security pattern. However, to configure MQ console authentication with LDAP, we must use the “ldap_registry.xml” file as a base. The mqwebuser.xml file must be created based on the type of authentication desired for your IBM MQ installation:
Arquivo / Template
|
Objetivo
|
basic_registry.xml
|
Segurança básica, usuários definidos no arquivo xml.
|
ldap_registry.xml
|
Segurança com autenticação via LDAP.
|
local_os_registry.xml
|
Segurança com autenticação dos usuários locais do sitema operacional.
|
no_security.xml
|
Sem segurança / autenticação no MQ Console.
|
User profiles for the MQ Console
The sample basic_registry.xml file configures four users:
- mqadmin: An administrative user who is a member of the MQWebAdmin role.
- mqreader: A read-only administrative user who is a member of the MQWebAdminRO role.
- mftadmin: An administrative user who is a member of the MFTWebAdmin role.
- mftreader: A read-only administrative user who is a member of the MFTWebAdminRO role.
All users are also members of the MQWebUser role.
For more information about the available roles, see:
Roles on the IBM MQ Console and REST API
https://www.ibm.com/docs/en/ibm-mq/9.2?topic=roles-mq-console-rest-api
Accessing the MQ Console
In our example, using the root user, we disable the firewall on the Linux server:
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
|
Using the mqm user, start the MQ Console with the strmqweb command.
By running the dspmqweb command, you can check the status of MQ Web and also the address of the web console.

To access the MQ Console, use the user mqadmin (initial password: mqadmin).


Conclusion
This document contains a demonstration of the procedures for installing and configuring the MQ Console on the Linux operating system, and should not be considered as an installation/upgrade manual.
The purpose of this material is to serve as a reference for support and administration professionals of the environments where the solution is executed. It is assumed that the reader is familiar with the Linux operating system.
References
• IBM MQ 9.4
https://www.ibm.com/docs/en/ibm-mq/9.4.x
• Getting started with the IBM MQ Console - Starting and accessing the MQ Console
https://www.ibm.com/docs/en/ibm-mq/9.4?topic=console-getting-started-mq
• IBM MQ Console quick tour
https://www.ibm.com/docs/en/ibm-mq/9.4?topic=console-quick-tour-mq
• Administration using the IBM MQ Console
https://www.ibm.com/docs/en/ibm-mq/9.4?topic=administering-administration-using-mq-console
• IBM MQ configurations Console
https://www.ibm.com/docs/en/ibm-mq/9.4?topic=console-mq-settings