Novell eDirectory Management Utilities
163
no
vd
ocx
(e
n)
6 Ap
ril 20
07
To prevent the first line to be treated as a sequence of attibutes during a subsequent import, use the -
k option. See
“Performing a Comma-Delimited Import” on page 161
for more information.
Performing a Data Migration between LDAP Servers
To perform a data migration between LDAP servers, combine the LDAP source and LDAP
destination handlers. For example:
ice -S LDAP -s server1.acme.com -p 389 -d cn=admin,c=us -w password -F
objectClass=* -c sub -D LDAP -s server2.acme.com -p 389 -d
cn=admin,c=us -w secret
This particular command line performs a subtree search for all objects in the server
server1.acme.com at port 389 using the identity cn=admin,c=us and the password “password” and
sends it to the LDAP server server2.acme.com at port 389 using the identity cn=admin,c=us and the
password “secret.”
Performing a Schema Import
To perform a schema file import, use a command similar to the following:
ice -S SCH -f $HOME/myfile.sch -D LDAP -s myserver -d cn=admin,o=novell
-w passwd
This command line reads schema data from myfile.sch and sends it to the LDAP server myserver
using the identity cn=admin,o=novell and the password “passwd.”
Performing a LOAD File Import
To perform a LOAD file import, use a command similar to the following:
ice -S LOAD -f attrs -D LDIF -f new.ldf
In this example, the contents of the attribute file attrs is as follows:
#=====================================================================
# DirLoad 1.00
#=====================================================================
!COUNTER=300
!OBJECTCOUNT=2
#---------------------------------------------------------------------
--
# ATTRIBUTE TEMPLATE
# --------------------------------------------------------------------
objectclass: inetorgperson
givenname: $R(first)
initials: $R(initial)
sn: $R(last)
dn:
cn=$A(givenname,%.1s)$A(initial,%.1s)$A(sn),ou=$R(ou),ou=dev,o=novell,
telephonenumber: 1-800-$N(1-999,%03d)-$C(%04d)
title: $R(titles)
Running the previous command from a command prompt produces the following LDIF file:
Summary of Contents for EDIRECTORY 8.8 SP2
Page 4: ...novdocx en 6 April 2007...
Page 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 255: ...256 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 406: ...408 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 563: ...566 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 573: ...576 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...
Page 601: ...604 Novell eDirectory 8 8 Administration Guide novdocx en 6 April 2007...