U.S. +1 (312) 214 3570  |  E.U +34 (91) 656-9266

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 focuses on Identity Management. We offer "standards based" software components like the Symlabs Virtual Directory Server, Symlabs LDAP Proxy and the Symlabs Federated Identity Suite. We also offer software support, training and professional services.