Setting up Joomla 3 and JMapMyLDAP 1

Last Modified: 19-February-2013

In this video tutorial, we are going to demostrate how to create a Joomla instance with LDAP integration using JMapMyLDAP version 1. This includes authentication and group mapping aspects of the plugins. We will start by setting up an Ubuntu Server, installing the LAMP stack, get Joomla running, then proceed to integrate a Windows 2008 Active Directory setup.

This video does have some Microphone issues - you may need to turn it up in places.

The commands used in this video are listed below:

  1. Prepare VM - hostname, hosts file, openssh-server (for ssh & scp - for example using putty)
  2. apt-get update
  3. apt-get install apache2 php5 php5-ldap mysql-server php5-mysql
  4. nano /etc/apache2/sites-enabled/000-default (*change allowoverride to 'all')
  5. a2enmod rewrite
  6. /etc/init.d/apache2 restart
  7. wget
  8. mkdir -p /var/www/joomla
  9. tar -xvf Joomla_3.0.3-Stable-Full_Package.tar.gz -C /var/www/joomla
  10. chown -R www-data:www-data /var/www/joomla
  11. find /var/www/joomla/ -type f -exec chmod 644 {} \;
  12. find /var/www/joomla/ -type d -exec chmod 755 {} \;
  13. mysql -u root -p
  14. mysql> CREATE DATABASE joomla;
  15. mysql> GRANT ALL PRIVILEGES ON joomla.* TO 'juser'@'localhost' IDENTIFIED BY 'password';
  16. mysql> FLUSH PRIVILEGES; (* Do a CTRL+C after this)
  17. mysql -u juser -p joomla (*make sure this logs in)
  18. [ Install Joomla in Web Browser ]
  19. cd /var/www/joomla
  20. rm -rf installation/
  21. mv htaccess.txt .htaccess
  22. Log into Joomla backend then go to Extension Manager
  23. Install the following from URL:
  24. Activate & Edit JMapMyLDAP Authentication settings (* use ADSI Edit, AD and Shelldap to find correct values if needed)
  25. Activate JMapMyLDAP User plugin and turn Sync Name & Email on
  26. Create some Joomla groups
  27. Hook them up to the user plugin using the mapping list and ensure correct settings of the group mapping attributes