1LDIF2LDAP(8)                System Manager's Manual               LDIF2LDAP(8)
2
3
4

NAME

6       ldif2ldap - Directory Server script for adding entries
7

SYNOPSIS

9       ldif2ldap  [-Z  serverID] [-D <rootdn>] -w <password> -f <ldifFile> [-P
10       protocol] [-h]
11

DESCRIPTION

13       Performs an import operation over LDAP to the Directory Server. To  run
14       this script, the server must be running.
15

OPTIONS

17       A summary of options is included below:
18
19       -Z Server Identifier
20              The  server  ID  of  the Directory Server instance.  If there is
21              only one instance on the system, this option can be skipped.
22
23       -D Root DN
24              The Directory Manager DN, or root DN.   If  not  specified,  the
25              script  will  search  the  server instance configuration for the
26              value.
27
28       -w password
29              The rootdn password.
30
31       -f LDIF file
32              The LDIF file with the entries to add.
33
34       -P Protocol
35              The connection protocol to  connect  to  the  Directory  Server.
36              Protocols  are STARTTLS, LDAPS, LDAPI, and LDAP.  If this option
37              is skipped, the most secure protocol that is available is  used.
38              For LDAPI, AUTOBIND is also available for the root user.
39
40       -h
41              Display the usage.
42

EXAMPLE

44       ldif2ldap  -Z  instance3  -D  'cn=directory  manager'  -w  password  -f
45       /LDAP/ldif/entries.ldif -P STARTTLS
46
47       Note: security must be enabled to use protocol STARTTLS.   If  STARTTLS
48       is  not  available it will default to next strongest/available protocol
49       automatically.
50

DIAGNOSTICS

52       Exit status is zero if no errors occur.  Errors result  in  a  non-zero
53       exit status and a diagnostic message being written to standard error.
54

AUTHOR

56       ldif2ldap was written by the 389 Project.
57

REPORTING BUGS

59       Report bugs to https://pagure.io/389-ds-base/new_issue
60
62       Copyright © 2017 Red Hat, Inc.
63
64
65
66                                March 31, 2017                    LDIF2LDAP(8)
Impressum