58 lines
3.5 KiB
HTML
58 lines
3.5 KiB
HTML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow"/>
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<title>Directory Server (LDAP) - LDAP data interchange format (LDIF)</title>
|
||
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
||
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
||
|
|
||
|
|
||
|
<a name="rzahyldapdif"></a>
|
||
|
<h2 id="rzahyldapdif">LDAP data interchange format (LDIF)</h2>
|
||
|
<p>This documentation describes the LDAP data interchange format (LDIF), as
|
||
|
used by the <a href="rzahyldapadd.htm#rzahyldapadd">ldapmodify</a>, <a href="rzahyldapsrch.htm#rzahyldapsrch">ldapsearch</a> and <a href="rzahyldapadd.htm#rzahyldapadd">ldapadd</a> utilities. The LDIF
|
||
|
specified here is also supported by the server utilities provided with the
|
||
|
IBM Directory.</p>
|
||
|
<p>LDIF is used to represent LDAP entries in text form. The basic form of
|
||
|
an LDIF entry is: </p>
|
||
|
<pre class="xmp">dn: <<var class="pv">distinguished name</var>>
|
||
|
<<var class="pv">attrtype</var>> : <<var class="pv">attrvalue</var>>
|
||
|
<<var class="pv">attrtype</var>> : <<var class="pv">attrvalue</var>>
|
||
|
...</pre><p class="indatacontent">A line can be continued by starting the next line with a single space
|
||
|
or tab character, for example:</p>
|
||
|
<pre class="xmp"> dn: cn=John E Doe, o=University of Higher
|
||
|
Learning, c=US</pre><p class="indatacontent">Multiple attribute values are specified on separate
|
||
|
lines, for example:</p>
|
||
|
<pre class="xmp"> cn: John E Doe
|
||
|
cn: John Doe</pre><p class="indatacontent">If an <<var class="pv">attrvalue</var>> contains a non-US-ASCII
|
||
|
character, or begins with a space or a colon ':', the <<var class="pv">attrtype</var>>
|
||
|
is followed by a double colon and the value is encoded in base-64 notation.
|
||
|
For example, the value " begins with a space" would be encoded like this: </p>
|
||
|
<pre class="xmp"> cn:: IGJlZ2lucyB3aXRoIGEgc3BhY2U=</pre><p class="indatacontent">Multiple entries within the same
|
||
|
LDIF file are separated by a blank line. Multiple blank lines are considered
|
||
|
a logical end-of-file.</p>
|
||
|
<p>For more information, see the following:</p>
|
||
|
<ul>
|
||
|
<li><a href="rzahyldifexmp.htm#rzahyldifexmp">Example: LDIF</a></li>
|
||
|
<li><a href="rzahyldifv1.htm#rzahyldifv1">Version 1 LDIF support</a></li>
|
||
|
<li><a href="rzahyldifv1ex.htm#rzahyldifv1ex">Examples: Version 1 LDIF</a></li></ul>
|
||
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
||
|
</body>
|
||
|
</html>
|