Migration scripts for LDAP
These tools are freely redistributable according to the license included with the source files. They may be bundled with LDAP/NIS migration products. See RFC 2307 for more information.
You need perl to run these.
Modifying migrate_common.ph is not required anymore, this script is able to autoconfigure using /etc/ldap/ldap.conf client settings.
URI and BASE are necessary for autoconf, otherwise you'll have to input data by yourself
You can use them one by one like this example:
./migrate_protocols.pl /etc/protocols protocols.ldif
or migrate everything using one of the scripts from the table below, online are meant to be used when the ldap service is active, offline vice versa
N.B. while using perl scripts, if you won't provide an output file they'll output to stdout
Script Existing nameservice LDAP online
===================================================================
migrate_all_online.sh /etc flat files YES
migrate_all_offline.sh /etc flat files NO
migrate_all_netinfo_online.sh NetInfo YES
migrate_all_netinfo_offline.sh NetInfo NO
migrate_all_nis_online.sh Sun NIS/YP YES
migrate_all_nis_offline.sh Sun NIS/YP NO
migrate_all_nisplus_online.sh Sun NIS+ YES
migrate_all_nisplus_offline.sh Sun NIS+ NO
(The online scripts use ldapadd; the offline scripts use slapadd or ldif2ldbm.)
Additional customizations are available by using environment variables
Note: script options always take precedence over env variables
License is at the start of each file
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY AND WITHOUT SUPPORT.
Copyright (C) 1996-2001 Luke Howard. All rights reserved.
Copyright (C) 2020 Tanya. All rights reserved.