Bird
0
0

Given this rabbitmq.conf snippet:

medium📝 Command Output Q13 of 15
RabbitMQ - Security and Operations
Given this rabbitmq.conf snippet:
auth_backends.1 = ldap
ldap.servers.1 = ldap.example.com
ldap.user_dn_pattern = cn=${username},ou=users,dc=example,dc=com

What happens when a user tries to log in with username alice?
ARabbitMQ denies login because user_dn_pattern is missing
BRabbitMQ uses local user database ignoring LDAP
CRabbitMQ checks LDAP server at ldap.example.com using DN 'cn=alice,ou=users,dc=example,dc=com'
DRabbitMQ tries OAuth authentication instead
Step-by-Step Solution
Solution:
  1. Step 1: Analyze LDAP config parameters

    The config sets LDAP as backend and defines server and user DN pattern with ${username} placeholder.
  2. Step 2: Substitute username in DN pattern

    For username 'alice', DN becomes 'cn=alice,ou=users,dc=example,dc=com'. RabbitMQ uses this to query LDAP server.
  3. Final Answer:

    RabbitMQ checks LDAP server at ldap.example.com using DN 'cn=alice,ou=users,dc=example,dc=com' -> Option C
  4. Quick Check:

    Username substitution in DN pattern = LDAP query [OK]
Quick Trick: User DN pattern uses ${username} to query LDAP [OK]
Common Mistakes:
MISTAKES
  • Assuming local database is used
  • Thinking user_dn_pattern is optional
  • Confusing OAuth with LDAP backend

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes