Skip to content

Data Conversion#

This document lists the steps required to move data from LDAP to various other persistence mechanisms supported by Janssen Server.

LDAP to MySQL Migration Script#

This script migrates data from LDAP to MySQL on Ubuntu Linux platform.

  1. To use this script, firt install python3-ldap module
apt install python3-ldap
  1. Install MySQL Server, create a database (namely jansdb), add a user (namely jans) and give grant previlages to user jans on jansdb

  2. Download script to /opt/jans/jans-setup

    wget https://raw.githubusercontent.com/JanssenProject/jans/jans-linux-setup-ldap2mysql/jans-linux-setup/tools/ldap2mysql/ldap2mysql.py -O /opt/jans/jans-setup/ldap2mysql.py
    

  3. Execute

    cd /opt/jans/jans-setup`
    python3 ldap2mysql.py -remote-rdbm=mysql -rdbm-user=jans -rdbm-password=<password> -rdbm-db=jansdb -rdbm-host=<rdbm_host>
    

Contribute

If you’d like to contribute to this document, get started with the Contribution Guide


Last update: 2023-08-10
Created: 2022-07-18