Directory Server Documentation Index
Command-Line Tool Reference Home

move-entry

Description
Examples
Arguments

Description

Move one or more LDAP entries from one server to another.

The entry must exist on the source server and must not exist on the target server. The source server must support the use of interactive transactions and the 'real attributes only' request control. The target server must support the use of interactive transactions and the ignore NO-USER-MODIFICATION request control. This tool can only be used to move leaf entries, and the parent must already exist on the target server. If multiple entries are to be moved, then each one will be moved in a separate transaction.

Examples

Move entry 'uid=test.user,ou=People,dc=example,dc=com' from the source.example.com:389 server to the target.example.com:389 server:
move-entry --sourceHost source.example.com --sourcePort 389 \
     --sourceBindDN "cn=Directory Manager" --sourceBindPassword password \
     --targetHost target.example.com --targetPort 389 \
     --targetBindDN "cn=Directory Manager" --targetBindPassword password \
     --entryDN uid=test.user,ou=People,dc=example,dc=com

Arguments

-V
--version

Description Display Directory Server version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

--sourceHost {host}

Description The resolvable name or IP address for the source server
Default Value localhost
Required No
Multi-Valued No

--sourcePort {port}

Description The port number for the source server
Lower Bound 1
Upper Bound 65535
Default Value 389
Required No
Multi-Valued No

--sourceBindDN {bindDN}

Description The DN used when binding to the source server via simple authentication
Required No
Multi-Valued No

--sourceBindPassword {bindPassword}

Description The password to use when binding to the source server via simple or SASL authentication
Required No
Multi-Valued No

--sourceBindPasswordFile {bindPasswordFile}

Description The path to a file containing the password to use when binding to the source server via simple or SASL authentication
Required No
Multi-Valued No

--sourceUseSSL

Description Use SSL to secure communication with the source server

--sourceUseStartTLS

Description Use StartTLS to secure communication with the source server

--sourceCertNickname {nickname}

Description The nickname of the certificate to present to the source server if requested
Required No
Multi-Valued No

--sourceSASLOption {name=value}

Description A SASL option (in the form 'name=value')to use when attempting to authenticate to the source server
Required No
Multi-Valued Yes

--targetHost {host}

Description The resolvable name or IP address for the target server
Default Value localhost
Required No
Multi-Valued No

--targetPort {port}

Description The port number for the target server
Lower Bound 1
Upper Bound 65535
Default Value 389
Required No
Multi-Valued No

--targetBindDN {bindDN}

Description The DN used when binding to the target server via simple authentication
Required No
Multi-Valued No

--targetBindPassword {bindPassword}

Description The password to use when binding to the target server via simple or SASL authentication
Required No
Multi-Valued No

--targetBindPasswordFile {bindPasswordFile}

Description The path to a file containing the password to use when binding to the target server via simple or SASL authentication
Required No
Multi-Valued No

--targetUseSSL

Description Use SSL to secure communication with the target server

--targetUseStartTLS

Description Use StartTLS to secure communication with the target server

--targetCertNickname {nickname}

Description The nickname of the certificate to present to the target server if requested
Required No
Multi-Valued No

--targetSASLOption {name=value}

Description A SASL option (in the form 'name=value')to use when attempting to authenticate to the target server
Required No
Multi-Valued Yes

-X
--trustAll

Description Trust all server SSL certificates

-K {keyStorePath}
--keyStorePath {keyStorePath}

Description Certificate key store path
Required No
Multi-Valued No

-W {keyStorePassword}
--keyStorePassword {keyStorePassword}

Description Certificate key store PIN
Required No
Multi-Valued No

-u {keyStorePasswordFile}
--keyStorePasswordFile {keyStorePasswordFile}

Description Certificate key store PIN file
Required No
Multi-Valued No

-P {trustStorePath}
--trustStorePath {trustStorePath}

Description Certificate trust store path
Required No
Multi-Valued No

-T {trustStorePassword}
--trustStorePassword {trustStorePassword}

Description Certificate trust store PIN
Required No
Multi-Valued No

-U {path}
--trustStorePasswordFile {path}

Description Certificate trust store PIN file
Required No
Multi-Valued No

-b {dn}
--entryDN {dn}

Description The DN of an entry to move from the source server to the destination server. Multiple entries can be moved by providing this argument multiple times
Required No
Multi-Valued Yes

-f {path}
--entryDNFile {path}

Description The path to a file containing the DNs of entries to move from the source server to the target server. Empty lines and lines beginning with the octothorpe character (#) will be ignored. Entry DNs may optionally be prefixed with "dn: ", but long DNs cannot be wrapped across multiple lines
Required No
Multi-Valued No