U.S. +1 (312) 214 3570  |  E.U +34 (91) 320-5524

LDAP Shell Commands :: ldapmodrdn

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.

About Symlabs
 
Symlabs is the performance leader for virtual directory and identity management solutions.   Benchmarks show Symlabs Virtual Directory Server, LDAP Proxy and Federated Identity Suite are the fastest and most powerful products in the industry for managing and unifying identity data.   Global giants like Sony, IBM, Vodafone, Nokia and United Nations already depend on Symlabs to add flexibility, security, and reliability to their infrastructure.  Symlabs also offers annual support, training and professional services to our clients to help them develop, integrate, and maintain solutions.