

$ unzip ~/Downloads/amq-broker-7.1.1-bin.zipĬreate a broker instance with the default authentication mechanism: Red Hat AMQ 7 is a lightweight, high-performance, robust messaging platform freely available for development use through Red Hat Developer Program.ĭownload and unzip the last version on your computer: In the next section, we will configure Red Hat AMQ to authenticate users from LDAP and allow only users from AMQGroup to access the Management console and publish messages in queues. # filter: (member=cn=John+sn=Doe+uid=jdoe,ou=Users,dc=example,dc=com)ĭn: cn=Administrator,ou=Groups,dc=example,dc=comĭn: cn=AMQGroup,ou=Groups,dc=example,dc=comĪt this point, we have set up our LDAP server and made sure it is up and running by using various ldapsearch commands. $ ldapsearch -H ldap://localhost:11389 -x -D "uid=admin,ou=system" -w "secret" -b "ou=Groups,dc=example,dc=com" "(member=cn=John+sn=Doe+uid=jdoe,ou=Users,dc=example,dc=com)" -LL cn In the same context, we may want to display the different groups of user jdoe: $ ldapsearch -H ldap://localhost:11389 -x -D "uid=admin,ou=system" -w "secret" -b "ou=Users,dc=example,dc=com" -LLL cnĭn: cn=John+sn=Doe+uid=jdoe,ou=Users,dc=example,dc=comĭn: cn=Elvadas NONO+uid=enonowoguia,ou=Users,dc=example,dc=comĭn: cn=demo+uid=demo,ou=Users,dc=example,dc=com Once the LDAP server is set up and started, we can check the existing users with the following ldapsearch command: The Dind DN username and password to access LDAP server is admin/secret. Then, select the file you want to import, select the Update existing entries checkbox, and import the file.įor demonstration and simplicity purposes, all user passwords have been set to redhat, for example: You can use this /nelvadas/amq7_ldap_lab/blob/master/ldap.ldif file to reproduce the LDAP environment. From your root directory, import the ldap.diff file. In this tutorial, we will rely on Apache Directory Studio to quickly set up a simple LDAP server with the following structure: Enable custom LDAP authorization policies in Red Hat AMQ 7.Connect Red Hat AMQ 7 to LDAP using authentication providers.Set up a simple LDAP server with a set of users and groups using Apache Directory Studio.In order to do so, we will go perform the followings actions: We will see how to configure LDAP authentication on a Red Hat AMQ 7 broker instance.

This post is a continuation of the series on Red Hat AMQ 7 security topics for developers and ops people started by Mary Cochran.
