Qpid
  1. Qpid
  2. QPID-4462

[Java Broker] SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.18, 0.19, 0.20, 0.21
    • Fix Version/s: 0.22
    • Component/s: Java Broker
    • Labels:

      Description

      If the user tries to configure only the simple-ldap-auth-manager, client see the following exception on attempting to connect.

      javax.jms.JMSException: Error creating connection: Error: Unable to create SASL Server:PLAIN
      	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:125)
      	at org.apache.qpid.example.Hello.runTest(Hello.java:51)
      	at org.apache.qpid.example.Hello.main(Hello.java:40)
      

      The issue is that SimpleLDAPAuthenticationManager is omitting to register the PLAIN SASL mechanism.

      The user can workaround the issue by configuring a plain pd-auth-manager, (which causes the SASL mechanism to be registered) and specifying a default-auth-manager of SimpleLDAPAuthenticationManager as illustrated below:

      <default-auth-manager>SimpleLDAPAuthenticationManager</default-auth-manager>
      <pd-auth-manager>
        <principal-database>  <class>org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase</class>
          <attributes>
             <attribute>
               <name>passwordFile</name>
               <value>${conf}/emptypasswd</value>
             </attribute>
          </attributes>
        </principal-database>
      </pd-auth-manager>
      
      

        Activity

        Keith Wall created issue -
        Keith Wall made changes -
        Field Original Value New Value
        Labels LDAP
        Keith Wall made changes -
        Link This issue is depended upon by QPID-4475 [ QPID-4475 ]
        Keith Wall made changes -
        Link This issue is depended upon by QPID-4475 [ QPID-4475 ]
        Robbie Gemmell made changes -
        Affects Version/s 0.18 [ 12322451 ]
        Affects Version/s 0.19 [ 12322452 ]
        Affects Version/s 0.20 [ 12323548 ]
        Robbie Gemmell made changes -
        Assignee Robbie Gemmell [ gemmellr ]
        Robbie Gemmell made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Robbie Gemmell made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Robbie Gemmell made changes -
        Fix Version/s 0.23 [ 12324273 ]
        Rob Godfrey made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robbie Gemmell made changes -
        Summary SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN [Java Broker] SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
        Robbie Gemmell made changes -
        Fix Version/s 0.22 [ 12324272 ]
        Fix Version/s 0.23 [ 12324273 ]

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development