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.
- To use this script, firt install python3-ldap module
apt install python3-ldap
-
Install MySQL Server, create a database (namely jansdb), add a user (namely jans) and give grant previlages to user jans on jansdb
-
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
-
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
Created: 2022-07-18