LINUX.ORG.RU

История изменений

Исправление olegd, (текущая версия) :

Если интересует конкретная ошибка, то

«User jdoe is not authorized to create: topic://ActiveMQ.Advisory.Connection»

Аутентификация через LDAP, то есть:

<jaasAuthenticationPlugin configuration="activemq"/>

и

activemq { 
    org.apache.activemq.jaas.LDAPLoginModule requisite 
    debug=true 
    initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory 
    connectionURL="ldap://srv138:389" 
    connectionUsername="cn=Manager,dc=maxcrc,dc=com" 
    connectionPassword="secret" 
    connectionProtocol="s" 
    authentication=simple 
    userBase="ou=User,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com" 
    userSearchMatching="(uid={0})" 
    userSearchSubtree=true 
    roleBase="ou=Destination,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com"
    roleName=CN 
    roleSearchMatching="(member:=CN={0},ou=Group,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com)"
    roleSearchSubtree=true;
};

Кстати, зачем jaasAuthenticationPlugin роли, если их потом переопределяет другой плагин? Если их опустить — не логинит.

Исходная версия olegd, :

Если интересует конкретная ошибка, то

«User jdoe is not authorized to create: topic://ActiveMQ.Advisory.Connection»

Если аутентификация через LDAP, то есть:

<jaasAuthenticationPlugin configuration="activemq"/>

и

activemq { 
    org.apache.activemq.jaas.LDAPLoginModule requisite 
    debug=true 
    initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory 
    connectionURL="ldap://srv138:389" 
    connectionUsername="cn=Manager,dc=maxcrc,dc=com" 
    connectionPassword="secret" 
    connectionProtocol="s" 
    authentication=simple 
    userBase="ou=User,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com" 
    userSearchMatching="(uid={0})" 
    userSearchSubtree=true 
    roleBase="ou=Destination,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com"
    roleName=CN 
    roleSearchMatching="(member:=CN={0},ou=Group,ou=ActiveMQ,dc=activemq,dc=maxcrc,dc=com)"
    roleSearchSubtree=true;
};