Previous Topic: DXpassword Tool—Hash a Password

Next Topic: DXschemaldif Tool—Extract the Schema from an LDAP Directory

DXrename Tool—Change the Name of a Directory Entry

Use the DXrename tool to change the distinguished name of a directory entry. The utility can source the rename data for a single entry from the keyboard or for multiple entries from a file.

This command has the following format:

dxrename [options] [dn newdn]

Example: dxldap.conf file on a Windows System, Specifying the TLS_REQCERT Setting

TLS_CACERT  c:\program files\CA\Directory\dxserver\config\ssld\trusted.pem
TLS_REQCERT allow

Example: dxldap.conf file on a UNIX System, Using the Default TLS_REQECRT Setting

TLS_CACERT  /opt/CA/Directory/dxserver/config/ssld/trusted.pem

Example: Change Middle Initial

This example uses the Democorp sample directory supplied with CA Directory. You can repeat this example as a training exercise.

Consider an example entry Murray Horsfall

  1. Change the RDN to insert a middle initial J.

    The example uses the input file option. The example file name is filename.txt:

    cn=Murray HORSFALL,ou=Repair,ou=Operations,o=Democorp,c=AU
    cn=Murray J HORSFALL
    
  2. Use the DXrename tool as follows:
    dxrename -r -h hostname:1900 -f filename.txt
    
  3. Use the DXsearch tool to check the results of the rename:
    dxsearch -L -h hostname:19389 "(sn=horsfall)"
    
    
    
    dn: cn=Murray J HORSFALL,ou=Repair,ou=Operations,o=Democorp,c=AU
    oc: organizationalPerson
    oc: newPilotPerson
    oc: 0.9.2342.19200300.99.3.2
    cn: Murray J HORSFALL
    sn: HORSFALL
    title: Chief Information Officer
    telephone: 797 8877
    telephone: 797 8888
    mail: Murray.HORSFALL@Democorp.com
    postalAddress: 173 Toorak Rd $ South Yarra
    postalCode: 3066
    


Copyright © 2009 CA. All rights reserved. Email CA about this topic