1 .TH LDIF 5 "22 September 1998" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldif \- LDAP Data Interchange Format
8 The LDAP Data Interchange Format (LDIF) is used to represent LDAP
9 entries in text form. LDAP tools, such as
15 The basic form of an LDIF entry is:
19 dn: <distinguished name>
20 <attrdesc>: <attrvalue>
21 <attrdesc>: <attrvalue>
22 <attrdesc>:: <base64-encoded-value>
28 The value may be specified as UTF-8 text or as base64 encoded data,
29 or a URI may be provided to the location of the attribute value.
31 A line may be continued by starting the next line with a single space
36 dn: cn=Barbara J Jensen, dc=Open
41 Lines beginning with a sharpe sign ('#') are ignored.
43 Multiple attribute values are specified on separate lines, e.g.,
52 If an value contains a non-printing character, or begins
53 with a space or a colon ':', the <attrtype> is followed by a
54 double colon and the value is encoded in base 64 notation. e.g.,
55 the value " begins with a space" would be encoded like this:
59 cn:: IGJlZ2lucyB3aXRoIGEgc3BhY2U=
63 If the attribute value is located in a file, the <attrtype> is
64 followed by a ':<' and a file:// URI. e.g., the value contained
65 in the file /tmp/value would be listed like this:
72 Other URI schemes (ftp,http) may be supported as well.
74 Multiple entries within the same LDIF file are separated by blank
77 Here is an example of an LDIF file containing three entries.
81 dn: cn=Barbara J Jensen, dc=OpenLDAP, dc=Org
85 description:< file://tmp/babs
88 dn: cn=Bjorn J Jensen, dc=OpenLDAP, dc=Org
94 dn: cn=Jennifer J Jensen, dc=OpenLDAP, dc=Org
99 jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALD
100 A4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQ
101 ERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG
106 Notice that the description in Barbara Jensen's entry is
107 read from file://tmp/babs and the jpegPhoto in Jennifer
108 Jensen's entry is encoded using base 64.
113 .BR "LDAP Data Interchange Format," Good, G., RFC 2849.
116 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
118 is derived from University of Michigan LDAP 3.3 Release.