ldif2db.pl.8 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. .\" Hey, EMACS: -*- nroff -*-
  2. .\" First parameter, NAME, should be all caps
  3. .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
  4. .\" other parameters are allowed: see man(7), man(1)
  5. .TH LDIF2DB.PL 8 "Mar 5, 2013"
  6. .\" Please adjust this date whenever revising the manpage.
  7. .\"
  8. .\" Some roff macros, for reference:
  9. .\" .nh disable hyphenation
  10. .\" .hy enable hyphenation
  11. .\" .ad l left justify
  12. .\" .ad b justify to both left and right margins
  13. .\" .nf disable filling
  14. .\" .fi enable filling
  15. .\" .br insert line break
  16. .\" .sp <n> insert n+1 empty lines
  17. .\" for manpage-specific macros, see man(7)
  18. .SH NAME
  19. ldif2db.pl - Directory Server perl script for importing a LDIF file
  20. .SH SYNOPSIS
  21. ldif2db.pl \-n backend [\-Z serverID] [\-D rootdn] { \-w password | \-w \- | \-j filename } [\-P protocol] {\-s includeSuffix}* [{\-x excludeSuffix}*] [\-O] [\-c chunksize] [\-v] [\-h] [\-g [string]] [\-G namespace_id] {\-i filename}*
  22. .SH DESCRIPTION
  23. Imports LDIF file(s) into the server. Either the option '\-n' or '\-s' must be used. This script creates an entry in the directory that launches this dynamic task.
  24. .SH OPTIONS
  25. A summary of options is included below:
  26. .TP
  27. .B \fB\-Z\fR \fIServer Identifier\fR
  28. The server ID of the Directory Server instance. If there is only
  29. one instance on the system, this option can be skipped.
  30. .TP
  31. .B \fB\-D\fR \fIRoot DN\fR
  32. The Directory Manager DN, or root DN. If not specified, the script will
  33. search the server instance configuration for the value.
  34. .TP
  35. .B \fB\-w\fR \fIpassword\fR
  36. The rootdn password.
  37. .TP
  38. .B \fB\-w \-\fR
  39. .br
  40. Prompt for the rootdn password.
  41. .TP
  42. .B \fB\-j\fR \fIpassword filename\fR
  43. The name of the file that contains the root DN password.
  44. .TP
  45. .B \fB\-n\fR \fIBackend Name\fR
  46. The name of the LDBM database to restore. Example: userRoot
  47. .TP
  48. .B \fB\-s\fR \fIincludeSuffix\fR
  49. Specifies the suffixes to be included or specifies the subtrees to be included.
  50. .TP
  51. .B \fB\-x\fR \fIexcludeSuffix\fR
  52. Specifies the suffixes to be excluded or specifies the subtrees to be excluded.
  53. .TP
  54. .B \fB\-i\fR \fIfilename\fR
  55. Name for the LDIF file to import.
  56. .TP
  57. .B \fB\-g\fR \fI[string]\fR
  58. Generates a unique ID. Type none for no unique ID to be generated and deterministic for the generated unique ID to be name-based. By default, a time-based unique ID is generated. When using the deterministic generation to have a name-based unique ID, it is also possible to specify the namespace for the server to use, as follows:
  59. \-g deterministic namespaceId
  60. namespaceId is a string of characters in the format 00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx.
  61. .TP
  62. .B \fB\-G\fR \fInamespace_id\fR
  63. Generates a namespace ID as a name-based unique ID. This is the same as specifying the \-g deterministic option.
  64. .TP
  65. .B \fB\-P\fR \fIProtocol\fR
  66. The connection protocol to connect to the Directory Server. Protocols are STARTTLS, LDAPS, LDAPI, and LDAP.
  67. If this option is skipped, the most secure protocol that is available is used. For LDAPI, AUTOBIND is also
  68. available for the root user.
  69. .TP
  70. .B \fB\-O\fR
  71. .br
  72. Requests that only the core database is created without attribute indexes.
  73. .TP
  74. .B \fB\-c\fR \fIChunk size\fR
  75. The number of entries to process before starting a fresh pass during the import. By default this is handled internally by the server.
  76. .TP
  77. .B \fB\-v\fR
  78. .br
  79. Display verbose output
  80. .TP
  81. .B \fB\-h\fR
  82. .br
  83. Display usage
  84. .SH EXAMPLE
  85. .TP
  86. ldif2db.pl \-Z instance1 \-n userRoot \-i /LDAP/ldif/data.ldif
  87. .TP
  88. ldif2db.pl \-s "dc=example,dc=com" \-i /LDAP/ldif/data.ldif \-D 'cn=directory manager' \-w password \-P STARTTLS
  89. Note: security must be enabled to use protocol STARTTLS. If STARTTLS is not available it will default to next strongest/available protocol automatically.
  90. .SH DIAGNOSTICS
  91. Exit status is zero if no errors occur. Errors result in a
  92. non-zero exit status and a diagnostic message being written
  93. to standard error.
  94. .SH AUTHOR
  95. ldif2db.pl was written by the 389 Project.
  96. .SH "REPORTING BUGS"
  97. Report bugs to https://fedorahosted.org/389/newticket.
  98. .SH COPYRIGHT
  99. Copyright \(co 2013 Red Hat, Inc.