Giter Club home page Giter Club logo

convert_ldap's Introduction

convert_ldap.pl
Morgan Jones ([email protected])

General purpose script to convert ldif from one ldap schema to
another.  It can be used stand-alone to migrate an entire ldap
environment or a few users.  It is also used in selective_ldap_sync
(separate repository) to convert users as they are synchronized
between ldap environments.

Usage:
Dump the contents of the newly configured directory (Centos/Redhat/389 DS in this case):
    /usr/lib64/dirsrv/slapd-<instance>/db2ldif -s <base> -a /var/tmp/base.ldif
    or ODSEE: dsconf export --no-repl -h localhost -p port <base> /var/tmp/base.ldif
Transform the output of the old directory with this script:
    cat <old_base>_110511.20.49.38.ldif |./convert_ldap.pl > converted.ldif
Concatenate the converted old directory to the dump of the new directory.  This
    does assume that your containers were removed by convert_ldap.pl.
    cat /var/tmp/base.ldif converted.ldif > /var/tmp/o_msues.ldif
Stop slapd:
    /usr/lib64/dirsrv/slapd-<instance>/stop-slapd
Import the new data:
    /usr/lib64/dirsrv/slapd-<instance>/ldif2db -s <base> -i /var/tmp/<base>.ldif
It is normal to get a ton of errors the first few times.  If so, modify 
    convert_ldap.cf or base.ldif and repeat above.

See convert_ldap.cf for in-depth configuration options.

Features include:
- most changes can be done globally or per objectclass
- omitting bases or objects
- change from one basedn or object to another
- change attribute names
- arbitrary ldap value transform (via subroutine)
- change the rdn
- import values from a csv

convert_ldap's People

Contributors

morganllj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.