Creating and setting up Windows domain accounts for IBM MQ
The following information is intended for Domain Administrators. Use this information to create and set up a special domain account for the IBM MQ service if IBM MQ is to be installed on a Windows domain where local accounts do not have the authority to query the group membership of the domain user accounts.
About this task
When you add a local user to the mqm group, this allows that user to administer IBM MQ on the system. This task describes how to do the same using Windows domain user ids.
IBM MQ has a component, running as a Windows service under a local user account created by IBM MQ at installation, that checks that the account under which the IBM MQ services are run has the ability to query group memberships of domain accounts and has the authority to administer IBM MQ. Without the ability to query group memberships, the access checks made by the services fail.
Windows domain controllers running Windows Active Directory can be set up so that local accounts do not have the authority to query the group membership of the domain user accounts. This prevents IBM MQ from completing its checks, and access fails. If you are using Windows on a domain controller that has been set up in this way, a special domain user account with the required permissions must be used instead.
Each installation of IBM MQ on the network must be configured to run its service under a domain user account that has the required authority to check that users who are defined on the domains are authorized to access queue managers or queues. Typically, this special account has the IBM MQ administrator rights through membership of the domain group DOMAIN\Domain mqm. The domain group is automatically nested by the installation program under the local mqm group of the system on which IBM MQ is being installed.
Important: The IBM MQ installer must be given the userid and password details of this special domain user account so that they can use this information to configure the IBM MQ service after the product is installed. If an installer continues and configures IBM MQ without a special account, many or all parts of IBM MQ will not work, depending upon the particular user accounts involved, as follows:- IBM MQ connections to queue managers running under Windows domain accounts on other computers might fail.
- Typical errors include AMQ8066: Local mqm group not found and AMQ8079: Access was denied when attempting to retrieve group membership information for user 'abc@xyz'.
You must repeat steps 1 and 2 of the following procedure for each domain that has user names that will administer IBM MQ, to create an account for IBM MQ on each domain.
Procedure
-
Create a domain group with a special name that is known to IBM MQ (see 1.d) and give
members of this group the authority to query the group membership of any account:
- Log on to the domain controller as an account with domain administrator authority.
- From the Start menu, open Active Directory Users and Computers.
- Find the domain name in the navigation pane, right-click it and select New Group.
-
Type a group name into the Group name field.
Note: The preferred group name is Domain mqm. Type it exactly as shown.
- Calling the group Domain mqm modifies the behavior of the
Prepare IBM MQ
wizard on a domain workstation or server. It causes thePrepare IBM MQ
wizard automatically to add the group Domain mqm to the local mqm group on each new installation of IBM MQ in the domain. - We can install workstations or servers in a domain with no Domain mqm global group. If we do so, you must define a group with the same properties as Domain mqm group. You must make that group, or the users that are members of it, members of the local mqm group wherever IBM MQ is installed in a domain. We can place domain users into multiple groups. Create multiple domain groups, each group corresponding to a set of installations to manage separately. Split domain users, according to the installations they manage, into different domain groups. Add each domain group or groups to the local mqm group of different IBM MQ installations. Only domain users in the domain groups that are members of a specific local mqm group can create, administer, and run queue managers for that installation.
- The domain user that you nominate when installing IBM MQ on a workstation or server in a domain must be a member of the Domain mqm group, or of an alternative group you defined with same properties as the Domain mqm group.
- Calling the group Domain mqm modifies the behavior of the
- Leave Global clicked as the Group scope, or change it to Universal. Leave Security clicked as the Group type. Click OK.
-
Follow these steps to assign permissions to the group based on the Windows version of the domain controller:
On Windows Server 2012, Windows Server 2012 R2, and Windows Server
2016:
- In the Server Manager, click Tools then select Active Directory Users and Computers from the list box.
- Select View > Advanced Features.
- Expand your domain name, then click Users.
- In the Users window, right-click Domain mqm > Properties.
- On the Security tab, click Advanced > Add....
- Click Select principle, then type Domain mqm and
click Check names > OK.
The Name field is prefilled with the string Domain mqm (domain name\Domain mqm).
- In the Applies to list, select Descendant User Objects.
- In the Permissions list, select the Read group membership and Read groupMembershipSAM check boxes.
- Click OK > Apply > OK > OK.
- In the Server Manager navigation tree, click Users.
- In the Server Manager action bar, click View > Advanced features.
- In the Users window, right-click Domain mqm > Properties.
- On the Security tab, click Advanced > Add, then type Domain mqm and click Check names > OK.
The Name field is prefilled with the string Domain mqm (domain name\Domain mqm)
- Click Properties. In the Apply to list, select Descendant User Objects.
- In the Permissions list, select the Read group membership and Read groupMembershipSAM check boxes.
- Click OK > Apply > OK > OK.
-
Create one or more accounts, and add them to the group:
- In Active Directory Users and Computers, create a user account with a name of your choosing and add it to group Domain mqm (or a group that is a member of the local mqm group).
- Repeat for all the accounts you want to create.
- Repeat Steps 1 and 2 for each domain that has user names that will administer IBM MQ, to create an account for IBM MQ on each domain.
-
Use the accounts to configure each installation of IBM MQ:
- Either use the same domain user account (as created in Step 1 ) for each installation of IBM MQ, or create a separate account for each one, adding each to the Domain mqm group (or a group that is a member of the local mqm group).
- When we have created the account or accounts, give one to each person configuring an installation of IBM MQ. They must enter the account details (domain name, user name, and password) into the Prepare IBM MQ wizard. Give them the account that exists on the same domain as their installing userid.
-
When you install IBM MQ on any system on the
domain, the IBM MQ installation program detects the
existence of the Domain mqm group on the LAN, and automatically adds it to the
local mqm group. (The local mqm group is created during
installation; all user accounts in it have authority to manage IBM MQ ). Thus all members of the
Domain mqm
group will have authority to manage IBM MQ on this system. - However, we do still need to provide a domain user account (as created in Step 1 ) for each installation, and configure IBM MQ to use it when making its queries. The account details must be entered into the Prepare IBM MQ wizard that runs automatically at the end of installation (the wizard can also be run at any time from the start menu).
-
Set the password expiry periods:
- If we use just one account for all users of IBM MQ, consider making the password of the account never expire, otherwise all instances of IBM MQ will stop working at the same time when the password expires.
- If you give each user of IBM MQ their own user account you will have more user accounts to create and manage, but only one instance of IBM MQ will stop working at a time when the password expires.
If you set the password to expire, warn the users that they will see a message from IBM MQ each time it expires - the message warns that the password has expired, and describes how to reset it.
-
To use a Windows domain account as the userid for
the IBM MQ service, complete the following steps:
- Click Start > Run.... Type the command secpol.msc and click OK.
- Open Security Settings > Local Policies > User Rights Assignments. In the list of policies, right-click Log on as a service > Properties.
- Click Add User or Group.... Type the name of the user you obtained from your domain administrator, and click Check Names.
- If prompted by a Windows Security window, type the user name and password of an account user or administrator with sufficient authority, and click OK > Apply > OK. Close the Local Security Policy window.