Skip to content

DSI-Universite-Rennes2/openldap-migrate-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenLDAP database backend migration script

reuse compliant Trigger: Shell Check License: CC-BY-NC-SA-4.0

This bash script migrate an OpenLDAP database from HDB/BDB to MDB format.

Warning : Don't be stupid. You MUST test and backup your data and configuration before run this...

This script have been tested on Debian 10 (buster).

This script :

  • check needed dependencies
  • load MDB module
  • works directly on a copy of /etc/ldap/slapd.d to made needed changes to cn=config :
  • stop OpenLDAP
  • dump all OpenLDAP data with slapcat
  • delete OpenLDAP data file
  • replace OpenLDAP cn=config with new one
  • import data with slapadd
  • start OpenLDAP

Some code & tips from : https://wiki.zionetrix.net/informatique:reseau:ldap:migration_bdb_hdb_mdb So we publish this script with same License.

About

migrate OpenLDAP data's backend from bdb or hdb to mdb

Topics

Resources

License

Stars

1 star

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages