[ 
https://issues.apache.org/jira/browse/QPID-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861328#action_12861328
 ] 

Andrew Kennedy commented on QPID-2541:
--------------------------------------

a suggested api for the plugin is shown below (although only the first method 
is needed) followed by an example of how various group plugins would be 
configured in the main java broker XML configuration file. see the 
authentication mechanisms in the Java broker for an example of how this could 
be implemented.

== groups plugin api ==
    /** Check if a user is in a group? */
    boolean checkMembership(String userName, String groupName);

    /** Get the users that are members of a group. */
    List<String> getMembership(String groupName);

    /** Get the groups that a user is a member of. */
    List<String> getGroups(String userName);
==

== config.xml ==
<broker>
  <security>
    <!-- group file configuration -->
    <groups>
        <plugin>
            org.apache.qpid.server.security.groups.plugin.UnixFile
        </plugin>
        <file>${QPID_HOME}/etc/group</file>
    </groups>

    <!-- widows active directory configuration -->
    <groups>
        <plugin>
            org.apache.qpid.server.security.groups.plugin.ActiveDirectory
        </plugin>
        <root>
        <server name="192.168.0.1">
            <config name="key" value="data" />
            <config name="key" value="data" />
            <config name="key" value="data" />
        </server>
        </root>
    </groups>

    <!-- LDAP / JNDI servers -->
    <groups>
        <plugin>
            org.apache.qpid.server.security.groups.plugin.LDAPServer
            org.apache.qpid.server.security.groups.plugin.JNDIServer
        </plugin>
        <server username="user" password="pass" ip="192.168.0.2" />
    </groups>
  </security>
</broker>
==

> Separate Group an ACL configuration and make group sources pluggable
> --------------------------------------------------------------------
>
>                 Key: QPID-2541
>                 URL: https://issues.apache.org/jira/browse/QPID-2541
>             Project: Qpid
>          Issue Type: Sub-task
>          Components: Java Broker
>            Reporter: Andrew Kennedy
>             Fix For: 0.7
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to