https://github.com/andriykalashnykov/activemq-ldap-authorization
ActiveMQ LDAP Authentication and Authorization
https://github.com/andriykalashnykov/activemq-ldap-authorization
active-directory active-directory-integration activem-authentication activemq activemq-authorization apacheds authentication authorization docker-compose docker-image ldap ldap-authentication microsoft-ads openldap
Last synced: 2 months ago
JSON representation
ActiveMQ LDAP Authentication and Authorization
- Host: GitHub
- URL: https://github.com/andriykalashnykov/activemq-ldap-authorization
- Owner: AndriyKalashnykov
- License: mit
- Created: 2021-03-08T21:36:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T16:40:39.000Z (10 months ago)
- Last Synced: 2025-04-01T21:12:19.648Z (2 months ago)
- Topics: active-directory, active-directory-integration, activem-authentication, activemq, activemq-authorization, apacheds, authentication, authorization, docker-compose, docker-image, ldap, ldap-authentication, microsoft-ads, openldap
- Language: Shell
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/AndriyKalashnykov/activemq-ldap-authorization/actions/workflows/docker-image.yml)
[](https://hits.seeyoufarm.com)
[](https://opensource.org/licenses/MIT)
# ActiveMQ LDAP Authentication and AuthorizationThis project demonstrates how to use OpenLDAP and Apache DS (to mimic Microsoft Active Directory) for Apache ActiveMQ Authentication and Authorization it also shows how to secure ActiveMQ web console
## Pre-requisites
* [docker](https://docs.docker.com/get-docker/)
* [docker-compose](https://docs.docker.com/compose/install/)## Clone repo
```bash
git clone [email protected]:AndriyKalashnykov/activemq-ldap-authorization.git
cd activemq-ldap-authorization
```## Provide DockerHub credentials
Edit `./activemq-ldap-authorization/scripts/set-env.sh`, uncomment and set following environment variables:
```bash
# DOCKER_LOGIN=
# DOCKER_PWD=
```## Run docker-compose to start up ActiveMQ, Open LDAP server and PHP LDAP Admin
```bash
cd 5.1.16
docker-compose up
```## ActiveMQ web console
In web browser open `http://127.0.0.1:8161/admin/` use login: `admin` and password `admin`
```
open http://127.0.0.1:8161/admin/
```## PHP LDAP Admin web console
In web browser open `https://localhost:6443/`
use Login DN: `cn=admin,dc=activemq,dc=apache,dc=org` and Password: `admin````bash
open https://localhost:6443/
```## Test OpenLDAP search
```bash
./scripts/search-openldap.sh
```
## Start up Apache DS server and PHP LDAP Admin```bash
cd activemq-ldap-authorization/apacheds-ad
docker-compose up
```## PHP LDAP Admin web console
In web browser open `https://localhost:6443/`
use Login DN: `cn=mqbroker,ou=Services,ou=ActiveMQ,dc=activemq,dc=apache,dc=org` and Password: `admin````bash
open https://localhost:6443/
```
## Test Apache DS search```bash
./scripts/search-apacheds.sh
```## Samba aka Active Directory
```bash
cd samba
docker build -t dev-ad -f Dockerfile .
docker run --name dev-ad --hostname ak --privileged -p 636:636 -e SMB_ADMIN_PASSWORD=admin123! -v $PWD/:/opt/ad-scripts -v $PWD/samba-data:/var/lib/samba dev-ad
```