An encrypted LDIF file can be imported into the same instance from which it was exported, or into any other server in the same replication topology with that instance. You cannot import an encrypted LDIF file into a server that is not in some way connected to the instance from which it was exported.
Run the import-ldif tool to import the encrypted LDIF file
from the previous example. The command imports the
data.ldif file, decrypts the contents while overwriting
the existing contents to the
userRootbackend. The tool automatically determines encryption and compression, and it can automatically identify the correct key for exports that were encrypted with a key obtained from an encryption settings definition or an internal topology key.
$ bin/import-ldif --backendID userRoot --ldifFile /path/to/data.ldif \ --overwriteExistingEntries