Active MQ with LDAP and security lab¶
Deploying an OpenLDAP on EC2¶
- Create a EC2 instance with Ubuntu, t3.micro, and create a security group with port 22 and HTTP 80, from my IP address.
-
Install Apache HTTPD server
1. Install OpenLDAP with adminpassw0rdsudo apt-get update sudo apt-get install apache2
sudo apt-get install slapd ldap-utils
-
Start the configuration of LDAP
sudo dpkg-reconfigure slapd # Omit OpenLDAP server configuration? No # acme.com as DNS # ACME for org # Remove the database when slapd is purged? No # Move old database? Yes
-
Install Web App for OpenLDAP
sudo apt-get install phpldapadmin # update the config sudo vi /etc/phpldapadmin/config.php # Modify the following: # $servers->setValue('server','base',array('dc=acme,dc=com')); # $servers->setValue('login','bind_id','cn=admin,dc=acme,dc=com');
-
Go to the admin console: http://ec2-35-86-175-148.us-west-2.compute.amazonaws.com/phpldapadmin/