|
361 | 361 | ], |
362 | 362 | [rabbitmq_auth_backend_ldap]}, |
363 | 363 |
|
| 364 | + {vhost_access_query_single_line, |
| 365 | + "auth_ldap.queries.vhost_access = {in_group,\"ou=${vhost}-users,ou=vhosts,dc=example,dc=com\"}", |
| 366 | + [ |
| 367 | + {rabbitmq_auth_backend_ldap, [ |
| 368 | + {vhost_access_query, {in_group,"ou=${vhost}-users,ou=vhosts,dc=example,dc=com"}} |
| 369 | + ]} |
| 370 | + ], |
| 371 | + [rabbitmq_auth_backend_ldap]}, |
| 372 | + |
364 | 373 | {resource_access_query, |
365 | 374 | "auth_ldap.queries.resource_access = ''' |
366 | 375 | {for, [ |
|
394 | 403 | ], |
395 | 404 | [rabbitmq_auth_backend_ldap]}, |
396 | 405 |
|
| 406 | + {resource_access_query_single_line, |
| 407 | + "auth_ldap.queries.resource_access = {for, [{permission, configure, {constant, true}}]}", |
| 408 | + [ |
| 409 | + {rabbitmq_auth_backend_ldap, [ |
| 410 | + {resource_access_query, |
| 411 | + {for, [{permission, configure, {constant, true}}]} |
| 412 | + } |
| 413 | + ]} |
| 414 | + ], |
| 415 | + [rabbitmq_auth_backend_ldap]}, |
| 416 | + |
397 | 417 | {topic_access_query, |
398 | 418 | "auth_ldap.queries.topic_access = ''' |
399 | 419 | {for, [ |
|
413 | 433 | ], |
414 | 434 | [rabbitmq_auth_backend_ldap]}, |
415 | 435 |
|
| 436 | + {topic_access_query_single_line, |
| 437 | + "auth_ldap.queries.topic_access = {for, [{permission, write, {constant, true}}, {permission, read, {constant, true}}]}", |
| 438 | + [ |
| 439 | + {rabbitmq_auth_backend_ldap, [ |
| 440 | + {topic_access_query, |
| 441 | + {for, [{permission, write, {constant, true}}, {permission, read, {constant, true}}]} |
| 442 | + } |
| 443 | + ]} |
| 444 | + ], |
| 445 | + [rabbitmq_auth_backend_ldap]}, |
| 446 | + |
416 | 447 | {tag_queries, |
417 | 448 | "auth_ldap.queries.tags = ''' |
418 | 449 | [{administrator, {constant, false}}, |
|
0 commit comments