You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2012/11/23 12:40:58 UTC

[jira] [Created] (QPID-4462) SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

Keith Wall created QPID-4462:
--------------------------------

             Summary: SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
                 Key: QPID-4462
                 URL: https://issues.apache.org/jira/browse/QPID-4462
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: 0.21
            Reporter: Keith Wall


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

{noformat}
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)
{noformat}


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:

{code}
<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>

{code}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4462) SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

Posted by "Keith Wall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Keith Wall updated QPID-4462:
-----------------------------

    Labels: LDAP  (was: )
    
> SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
> ----------------------------------------------------------------------
>
>                 Key: QPID-4462
>                 URL: https://issues.apache.org/jira/browse/QPID-4462
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.21
>            Reporter: Keith Wall
>              Labels: LDAP
>
> If the user tries to configure only the simple-ldap-auth-manager, client see the following exception on attempting to connect.
> {noformat}
> 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)
> {noformat}
> 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:
> {code}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4462) SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-4462:
---------------------------------

    Affects Version/s: 0.20
                       0.19
                       0.18
    
> SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
> ----------------------------------------------------------------------
>
>                 Key: QPID-4462
>                 URL: https://issues.apache.org/jira/browse/QPID-4462
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.18, 0.19, 0.20, 0.21
>            Reporter: Keith Wall
>              Labels: LDAP
>
> If the user tries to configure only the simple-ldap-auth-manager, client see the following exception on attempting to connect.
> {noformat}
> 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)
> {noformat}
> 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:
> {code}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Commented] (QPID-4462) SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

Posted by "Justin Ross (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505862#comment-13505862 ] 

Justin Ross commented on QPID-4462:
-----------------------------------

Doc fix approved for 0.20.
                
> SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
> ----------------------------------------------------------------------
>
>                 Key: QPID-4462
>                 URL: https://issues.apache.org/jira/browse/QPID-4462
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.18, 0.19, 0.20, 0.21
>            Reporter: Keith Wall
>              Labels: LDAP
>
> If the user tries to configure only the simple-ldap-auth-manager, client see the following exception on attempting to connect.
> {noformat}
> 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)
> {noformat}
> 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:
> {code}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Commented] (QPID-4462) SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505663#comment-13505663 ] 

Robbie Gemmell commented on QPID-4462:
--------------------------------------

I have added the workaround to the documentation until this issue is resolved:
http://svn.apache.org/viewvc?view=revision&revision=1414821
                
> SimpleLDAPAuthenticationManager does not register SASL mechanism PLAIN
> ----------------------------------------------------------------------
>
>                 Key: QPID-4462
>                 URL: https://issues.apache.org/jira/browse/QPID-4462
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.18, 0.19, 0.20, 0.21
>            Reporter: Keith Wall
>              Labels: LDAP
>
> If the user tries to configure only the simple-ldap-auth-manager, client see the following exception on attempting to connect.
> {noformat}
> 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)
> {noformat}
> 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:
> {code}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org