[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Trying to get "changetype: moddn" to work
Dave Horsfall wrote:
> 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?
It's been supported since ever. Many tests actually verify it any time
you "make tests".
> 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
This is telling you "cn=dhtest,dc=coreng,dc=com,dc=au" does not exist.
Can you verify its existence? And provide some server-side logging as well?
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati@sys-net.it
------------------------------------------