- Ubuntu 14.04
- OpenLDAP Binary as a deb package - Preferably Symas Openldap Gold
- Export the ldap data using the export_opendj script
service gluu-server-2.4.4 login
wget https://raw.githubusercontent.com/GluuFederation/community-edition-setup/master/static/scripts/export_opendj.py
python export_opendj.py
exit
This creates a folder called backup_24 that will contain all the LDAP data in the ldif file format. 2. Install the Gluu Server 3.0.0 alpha version.
echo "deb https://repo.gluu.org/ubuntu/ trusty-devel main" > /etc/apt/sources.list.d/gluu-repo.list
curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add -
apt-get update
apt-get install gluu-server-3.0.0
- Stop the old server and copy the files to the new one. Assuming you have
openldap.deb
in the/root
directory
service gluu-server-2.4.4 stop
cp -r /opt/gluu-server-2.4.4/root/backup_24/ /opt/gluu-server-3.0.0/root/
cp openldap.deb /opt/gluu-server-3.0.0/root/
- Start the new server and login and do some bootstrapping.
service gluu-server-3.0.0 start
service gluu-server-3.0.0 login
dpkg -i openldap.deb
cd /install
rm -rf community-edition-setup
git clone https://github.com/GluuFederation/community-edition-setup.git
cd community-edition-setup
cp /root/backup_24/setup.properties /install/community-edition-setup/
sed -i 's/ldap_type\ \=\ \"opendj\"/ldap_type\ \=\ \"openldap\"/' setup.py
./setup.py
- Input the values and wait for the installation to finish.
- Import the old OpenDJ data into OpenLDAP
wget -c https://raw.githubusercontent.com/GluuFederation/community-edition-setup/master/static/scripts/import_openldap.py
wget -c https://raw.githubusercontent.com/GluuFederation/community-edition-setup/master/ldif.py
apt-get update
apt-get install python-pip
pip install jsonmerge
python import_openldap.py backup_24
- Start the Openldap server
service solserver start
- Verify connection using username
cn=directory manager,o=gluu
and your ldap password from the old installation on the port 1636.