Profile priorities on UNIX, Linux, and Windows
More than one generic profile can apply to a single object. Where this is the case, the most specific rule applies.
An important point to understand when using generic profiles is the priority that profiles are given when deciding what authorities to apply to an object being created. For example, suppose that you have issued the commands:setmqaut -n AB.* -t q +put -p fred setmqaut -n AB.C* -t q +get -p fred
The first gives put authority to all queues for the principal fred with names that match the profile AB.*; the second gives get authority to the same types of queue that match the profile AB.C*.
Suppose that you now create a queue called AB.CD. According to the rules for wildcard matching, either setmqaut could apply to that queue. So, does it have put or get authority?
To find the answer, you apply the rule that, whenever multiple profiles can apply to an object, only the most specific applies. The way that you apply this rule is by comparing the profile names from left to right. Wherever they differ, a non-generic character is more specific then a generic character. So, in this example, the queue AB.CD has get authority (AB.C* is more specific than AB.*).
When we are comparing generic characters, the order of specificity is:- ?
- *
- **
See SET AUTHREC for the equivalent information when using this MQSC command.
Parent topic: Use OAM generic profiles on UNIX, Linux, and Windows