ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahy_5.4.0.1/rzahyimp-pi.htm

86 lines
5.5 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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) - Import/Export an LDIF file</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>
<img src="delta.gif" alt="Start of change" />
<a name="rzahyimp-pi"></a>
<h3 id="rzahyimp-pi">Import/Export an LDIF file</h3>
<p><span class="bold">Import an LDIF file</span></p>
<p>You can transfer information between different Directory Servers by using
LDAP Data Interchange Format (LDIF) files. See <a href="rzahyldapdif.htm#rzahyldapdif">LDAP data interchange format (LDIF)</a> for
more information. Before you begin this procedure, transfer the LDIF file
to your iSeries server as a stream file.</p>
<p>To import an LDIF file to the Directory Server, take these steps:</p>
<ol type="1">
<li>If the directory server is started, stop it. See <a href="rzahysta-pi.htm#rzahysta-pi">Start/stop the Directory Server</a> for
information about stopping the directory server.</li>
<li>In iSeries Navigator, expand <span class="bold">Network</span>.</li>
<li>Expand <span class="bold">Servers</span>.</li>
<li>Click <span class="bold">TCP/IP</span>.</li>
<li>Right-click <span class="bold">IBM Directory Server</span> and select <span class="bold">Tools</span>, then <span class="bold">Import File</span>.
<p>Optionally you can have the server replicate the newly imported data
when it is next started by selecting <span class="bold">Replicate
imported data</span>. This is useful when adding new entries to an existing
directory tree on a master server. If you are importing data to initialize
a replica (or peer) server, typically you will not want to have the data replicated,
as it might already exist on the servers for which this server is a supplier.</p></li></ol>
<a name="wq96"></a>
<div class="notetitle" id="wq96">Note:</div>
<div class="notebody">You can also use the ldapadd utility (see <a href="rzahyldapadd.htm#rzahyldapadd">ldapmodify and ldapadd</a>)
to import LDIF files.</div>
<p><span class="bold">Export an LDIF file</span></p>
<p>You can transfer information between different Directory Servers by using
LDAP Data Interchange Format (LDIF) files, see <a href="rzahyldapdif.htm#rzahyldapdif">LDAP data interchange format (LDIF)</a>.
You can export all or part of your LDAP directory to an LDIF file.</p>
<p>To export an LDIF file from the directory server, take these steps:</p>
<ol type="1">
<li>In iSeries Navigator, expand <span class="bold">Network</span>.</li>
<li>Expand <span class="bold">Servers</span>.</li>
<li>Click <span class="bold">TCP/IP</span>.</li>
<li>Right-click <span class="bold">IBM Directory Server</span> and select <span class="bold">Tools</span>, then <span class="bold">Export File</span>.
<a name="wq98"></a>
<div class="notetitle" id="wq98">Note:</div>
<div class="notebody">If you do not specify a fully qualified path
for the LDIF file to export data into, the file will be created in the home
directory specified in your operating system user profile.</div></li>
<li><img src="delta.gif" alt="Start of change" /> Specify whether to <span class="bold">Export entire
directory</span> or <span class="bold">Export selected subtree</span> as
well as whether to <span class="bold">Export operational attributes</span>. The operational attributes that are exported are creatorsName, createTimestamp,
modifiersName, and modifyTimestamp.<img src="deltaend.gif" alt="End of change" /></li></ol>
<a name="wq99"></a>
<div class="notelisttitle" id="wq99">Notes:</div>
<ol type="1">
<li>When exporting data for importation into V5R3 or earlier directory servers,
do not select <span class="bold">Export operational attributes</span>.
These operational attributes cannot be imported into V5R3 or earlier directory
servers.</li>
<li>You can also create a full or partial LDIF file with the ldapsearch utility,
see <a href="rzahyldapsrch.htm#rzahyldapsrch">ldapsearch</a>. Use the -L option and redirect the output
to a file.</li>
<li>Be sure to set authority to the LDIF file to prevent unauthorized access
to directory data. To do this, right-click on the file in iSeries Navigator, then select <span class="bold">Permissions</span>.</li>
</ol><img src="deltaend.gif" alt="End of change" />
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>