91 lines
3.8 KiB
HTML
91 lines
3.8 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) - Examples: Version 1 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="rzahyldifv1ex"></a>
|
||
|
<h3 id="rzahyldifv1ex">Examples: Version 1 LDIF</h3>
|
||
|
<p>You can use the optional charset tag so that the utilities will
|
||
|
automatically convert from the specified character set to UTF-8 as in the
|
||
|
following example:</p>
|
||
|
<pre class="xmp"> version: 1
|
||
|
charset: ISO-8859-1
|
||
|
|
||
|
dn: cn=Juan Griego, o=University of New Mexico, c=US
|
||
|
cn: Juan Griego
|
||
|
sn: Griego
|
||
|
description:: V2hhdCBhIGNhcmVmdWwgcmVhZGVyIHlvd
|
||
|
title: Associate Dean
|
||
|
title: [title in Spanish]
|
||
|
jpegPhoto:> file:///usr/local/photos/jgriego.jpg</pre>
|
||
|
<p>In this instance, all values following an attribute name and
|
||
|
a single colon are translated from the ISO-8859-1 character set to UTF-8.
|
||
|
Values following an attribute name and a double colon (such as description::
|
||
|
V2hhdCBhIGNhcm... ) must be base-64 encoded, and are expected to be either
|
||
|
binary or UTF-8 character strings. Values read from a file, such as the jpegPhoto
|
||
|
attribute specified by the Web address in the previous example, are also
|
||
|
expected to be either binary or UTF-8. No translation from the specified "charset"
|
||
|
to UTF-8 is done on those values.</p>
|
||
|
<p>In this example of an LDIF file without the charset tag, content
|
||
|
is expected to be in UTF-8, or base-64 encoded UTF-8, or base-64 encoded binary
|
||
|
data: </p>
|
||
|
<pre class="xmp"># IBM Directorysample LDIF file
|
||
|
#
|
||
|
# The suffix "o=IBM, c=US" should be defined before attempting to load
|
||
|
# this data.
|
||
|
|
||
|
version: 1
|
||
|
|
||
|
dn: o=IBM, c=US
|
||
|
objectclass: top
|
||
|
objectclass: organization
|
||
|
o: IBM
|
||
|
|
||
|
dn: ou=Austin, o=IBM, c=US
|
||
|
ou: Austin
|
||
|
objectclass: organizationalUnit
|
||
|
seealso: cn=Linda Carlesberg, ou=Austin, o=IBM, c=US</pre><p class="indatacontent">This same file
|
||
|
could be used without the version: 1 header information, as in previous releases
|
||
|
of the IBM Directory:</p>
|
||
|
<pre class="xmp"> # IBM Directorysample LDIF file
|
||
|
#
|
||
|
# The suffix "o=IBM, c=US" should be defined before attempting to load
|
||
|
# this data.
|
||
|
|
||
|
dn: o=IBM, c=US
|
||
|
objectclass: top
|
||
|
objectclass: organization
|
||
|
o: IBM
|
||
|
|
||
|
dn: ou=Austin, o=IBM, c=US
|
||
|
ou: Austin
|
||
|
objectclass: organizationalUnit
|
||
|
seealso: cn=Linda Carlesberg, ou=Austin, o=IBM, c=US</pre>
|
||
|
<a name="wq390"></a>
|
||
|
<div class="notetitle" id="wq390">Note:</div>
|
||
|
<div class="notebody">The textual attribute values can be specified in base-64
|
||
|
format.</div>
|
||
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
||
|
</body>
|
||
|
</html>
|