Bird
0
0

You want RabbitMQ to authenticate users first with LDAP, then fallback to OAuth if LDAP fails. How should you configure auth_backends in rabbitmq.conf?

hard📝 Best Practice Q15 of 15
RabbitMQ - Security and Operations
You want RabbitMQ to authenticate users first with LDAP, then fallback to OAuth if LDAP fails. How should you configure auth_backends in rabbitmq.conf?
Aauth_backends = {ldap, oauth}
Bauth_backends.1 = oauth auth_backends.2 = ldap
Cauth_backends = ldap auth_backends = oauth
Dauth_backends.1 = ldap auth_backends.2 = oauth
Step-by-Step Solution
Solution:
  1. Step 1: Understand auth_backends order

    RabbitMQ tries backends in the order listed in auth_backends.
  2. Step 2: Set LDAP first, OAuth second

    To try LDAP first, then OAuth, configure auth_backends.1 = ldap
    auth_backends.2 = oauth.
  3. Final Answer:

    auth_backends.1 = ldap auth_backends.2 = oauth -> Option D
  4. Quick Check:

    Backend order controls fallback sequence [OK]
Quick Trick: List backends in order of priority with auth_backends.1, .2 [OK]
Common Mistakes:
MISTAKES
  • Reversing backend order
  • Using multiple auth_backends lines
  • Using curly braces instead of brackets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes