ldapmodrdn :: LDAP Shell Commands

Description
 
Ldapmodrdn opens a connection to an LDAP server, binds and modifies the rdn of entries. The entry information is read from standard input, from a file (with -f option) or from the command-line pair dn rdn
 
Syntax
 
ldapmodrdn
[-r] [-n] [-v] [-k] [-K] [-c]
[-M[M]] [-d debuglevel] [-D binddn]
[-W] [-w passwd] [-y passwdfile]
[-H ldapuri] [-h ldaphost] [-p ldapport]
[-P 2|3] [-O security-properties] [-I]
[-Q] [-U authcid] [-R realm] [-x]
[-X authzid] [-Y mech] [-Z[Z]] [-f file]
[dn rdn]
 
-r
Remove old RDN values from the entry. Default is to keep old values.
-c
Continuous operation mode. If an error is found it is reported, but ldapmodrdn will continue reading pairs dn-rdn. The default is to exit after reporting an error.
-h ldaphost Specifies an alternate host on which the LDAP server is running
-p ldapport Specifies the TCP port where the LDAP server is listening
-D binddn Binddn is the distinguished name used to bind to the LDAP server
-w passwd Use passwd as the password for simple authentication
-f file Read the pairs dn - rdn from file.
dn rdn Distinguished name of the entry and new rdn

Example
 
The following command:
 
ldapmodrdn -r -c -h 10.63.3.200 -p 1389
-D "cn=James Bond,ou=people, dc=mycompany,dc=com"
-w drymartini "id=47,ou=people, dc=mycompany,dc=com"
"id=60"
 
Will modify the entry "id=47,ou=people..." changing the id from 47 to 60 and deleting the old value. The bind to the LDAP server is done as "cn=James Bond..." and the server is installed in host 10.63.3.200 listening on port 1389.

Symlabs is now part of Quest Software. A leader in simplifying and reducing the cost of IT management, Quest’s innovative solutions make solving the toughest IT management problems easier, enabling more than 100,000 customers worldwide to save time and money across physical, virtual and cloud environments. The addition of Symlabs virtual directory and federation technology will enhance the overall architecture of the Quest® One Identity Solution and Quest migration products. Learn more at www.quest.com/symlabs.