Configuring an LDAP registry for the IBM MQ Console and REST API
You can configure an LDAP registry within the mqwebuser.xml file. The user names and passwords in the LDAP registry are used to authenticate and authorize users of the IBM® MQ Console and the REST API.
Before you begin
- When you configure an LDAP registry, you must assign each user a role. Each role provides
different levels of privilege to access the IBM MQ Console and REST API, and determines the security context
that is used when an allowed operation is attempted. You need to understand these roles before you
configure the registry. For more information about each of the roles, see Roles on the IBM MQ Console and REST API.
Be aware that any user with the
MQWebUserrole can perform only the operations that the user ID is granted to perform on the queue manager. Therefore, the user ID defined on the LDAP server must have an identical user ID on the system on which IBM MQ is installed. These user IDs must be in the same case, or the mapping between the user IDs can fail. - To complete this task, you must be a user with sufficient privileges to edit the
mqwebuser.xml file:
On z/OS®, you must have write access
to the mqwebuser.xml file.
On all other operating systems, you must be a privileged user.![[MQ 9.4.0 Jun 2024]](ng940.gif)
If the mqweb server is part of a stand-alone IBM MQ Web Server installation, you must have write access to the
mqwebuser.xml file in the IBM MQ Web Server
data directory.
Procedure
What to do next
Choose how users authenticate:
- IBM MQ Console authentication options
-
- Let users authenticate by using token authentication. In this case, a user enters a user ID and password at the IBM MQ Console log in screen. An LTPA token is generated that enables the user to remain logged in and authorized for a set amount of time. No further configuration is required to use this authentication option, but you can optionally configure the expiry interval for the LTPA token. For more information, see Configuring the LTPA token expiry interval.
- Let users authenticate by using client certificates. In this case, the user does not use a user ID or password to log in to the IBM MQ Console, but uses the client certificate instead. For more information, see Configuring client certificate authentication with the REST API and IBM MQ Console.
- REST API authentication options
-
- Let users authenticate by using HTTP basic authentication. In this case, a user name and password is encoded, but not encrypted, and sent with each REST API request to authenticate and authorize the user for that request. In order for this authentication to be secure, you must use a secure connection. That is, you must use HTTPS. For more information, see Using HTTP basic authentication with the REST API.
- Let users authenticate by using token authentication. In this case, a user provides a user ID
and password to the REST API
loginresource with the HTTP POST method. An LTPA token is generated that enables the user to remain logged in and authorized for a set amount of time. For more information, see Using token-based authentication with the REST API. You can configure the expiry interval for the LTPA token. For more information, see Configuring the LTPA token. - Let users authenticate by using client certificates. In this case, the user does not use a user ID or password to log in to the REST API, but uses the client certificate instead. For more information, see Configuring client certificate authentication with the REST API and IBM MQ Console.
On ![[AIX]](ngaix.gif)
On