Ce contenu n'est pas disponible dans la langue sélectionnée.
9.13. ACL Lookup Query Methods
QMF methods are available to query the ACL Authorization interface.
The Broker must be started with the ACL file that you wish to query, and that ACL file must include sufficient permissions to allow the lookup operations:
The QMF methods to query the ACL Authorization interface are
Lookup
and LookupPublish
.
The
Lookup
method is a general query for any action, object, and set of properties. The LookupPublish
method is the optimized, per-message fastpath query.
In both methods the result is one of:
allow
, deny
, allow-log
, or deny-log
.
Method: Lookup
Argument | Type | Direction |
---|---|---|
userId
|
long-string
|
I
|
action
|
long-string
|
I
|
object
|
long-string
|
I
|
objectName
|
long-string
|
I
|
propertyMap
|
field-table
|
I
|
result
|
long-string
|
O
|
Method: LookupPublish
Argument | Type | Direction |
---|---|---|
userId
|
long-string
|
I
|
exchangeName
|
long-string
|
I
|
routingKey
|
long-string
|
I
|
result
|
long-string
|
O
|
Management Properties and Statistics
The following properties and statistics have been added to reflect command line settings in effect and Acl quota denial activity.
Element | Type | Access | Description |
---|---|---|---|
maxConnections
|
uint16
|
ReadOnly
|
Maximum allowed connections
|
Element | Type | Access | Description |
---|---|---|---|
maxConnectionsPerIp
|
uint16
|
ReadOnly
|
Maximum allowed connections
|
maxConnectionsPerUser
|
uint16
|
ReadOnly
|
Maximum allowed connections
|
maxQueuesPerUser
|
uint16
|
ReadOnly
|
Maximum allowed queues
|
connectionDenyCount
|
uint64
| |
Number of connections denied
|
queueQuotaDenyCount
|
uint64
| |
Number of queue creations denied
|
Example
Procedure 9.1. ACL Lookup Example
To see a practical example, follow these steps.
- Start the broker using the example ACL file
acl-test-01-rules.acl
reproduced below, and withQPID_LOG_ENABLE=debug+:acl
. - Run the Python script
acl-test-01.py
. - Examine the Python program output and the broker log.