The LDAP Loader utility creates and (optionally) loads deployment-specific LDAP Data Interchange Format (LDIF) files.
The user is required to specify the target deployment domain at runtime, as explained below.
The utility is invoked on the command line:
$ ./ldaploader.sh --help
Usage:
ldaploader [--help --bdn <dn> --bps <password> -d <name> -i <path> -l|+l --dn <dn> --ol <path>]
--help Print help information.
--bdn (--binddn) dn Distinguished name to use when binding to a LDAP service.
--bps (--bindpass) password Password to use when binding to a LDAP service.
-d (--domain) name Domain name to load LDAP data for.
-i (--in) path Path to the input directory or archive file from which to read certificates/keys.
-l (-load) Whether to load LDAP entries.
--dn (--loaddn) dn Distinguished name to load the LDAP entries into.
--ol (--outldifs) path Path to the output directory into which to write parsed LDIF files.
-d (--domain) name Domain name to load data for.
--bdn (--binddn) dn Distinguished name to use when binding to a LDAP service.
--bps (--bindpass) password Password to use when binding to a LDAP service.
-i (--in) path Path to the input directory or archive file from which to read certificates/keys.
-l (-load) Whether to load LDAP entries.
--dn (--loaddn) dn Distinguished name to load the LDAP entries into.
--ol (--outldifs) path Path to the output directory into which to write parsed LDIF files.
$ ./ldaploader.sh -d localhost
Wrote 10 LDIF entries to file: out/ldaploader/ldif/default.ldif
Loaded 9 LDIF (path=utils/ldaploader/ldif/default.ldif) entries into LDAP service (ldap://ldap.localhost:10389/).
Wrote 4 LDIF entries to file: out/ldaploader/ldif/domain2ldap1.ldif
Loaded 4 LDIF (path=utils/ldaploader/ldif/domain2ldap1.ldif) entries into LDAP service (ldap://ldap.localhost:11389/).