OpenLDAP 2.3.32.
ldapmodify -v ... << EOF
dn: cn=dhtest,dc=coreng,dc=com,dc=au
changetype: moddn
newrdn: cn=dhtest1
deleteoldrdn: 0
EOF
generates:
ldap_initialize( ldap://xxx... )
Enter LDAP Password:
modifying rdn of entry "cn=dhtest,dc=coreng,dc=com,dc=au"
new RDN: "cn=dhtest1" (keep existing values)
rename completed
ldap_rename: No such object (32)
matched DN: dc=coreng,dc=com,dc=au
Is this a supported operation?
Similarly, keeping the RDN but moving it to a new hierarchy with:
ldapmodify -v ... << EOF
dn: cn=dhtest,dc=coreng,dc=com,dc=au
changetype: moddn
newrdn: cn=dhtest
deleteoldrdn: 1
newsuperior: ou=systems,dc=coreng,dc=com,dc=au
EOF
generates:
ldap_initialize( ldap://xxx... )
Enter LDAP Password:
modifying rdn of entry "cn=dhtest,dc=coreng,dc=com,dc=au"
new RDN: "cn=dhtest" (do not keep existing values)
rename completed
ldap_rename: No such object (32)
matched DN: dc=coreng,dc=com,dc=au
--
Dave Horsfall DTM VK2KFU daveh(a)ci.com.au Ph: +61 2 9552-5509 (d) -5500 (sw)
Corinthian Eng'ng P/L, Ste 54 Jones Bay Whf, 26-32 Pirrama Rd, Pyrmont 2009, AU