Ugh, old LDAP server...

Second way worked but I had to give it the newrdn as well:

07-06-2005 19:06:09: _moveWWWLdapAccountOU: FAILED to move user ->
dyoung2
07-06-2005 19:06:09: _moveWWWLdapAccountOU: LDAP error code is 89
07-06-2005 19:06:09: _moveWWWLdapAccountOU: LDAP error text is: No
NewRDN specified
07-06-2005 19:06:09: DEBUG: _moveWWWLdapAccountOU: returning with val 0

And then:

07-06-2005 19:06:45: _moveWWWLdapAccountOU: FAILED to move user ->
dyoung2
07-06-2005 19:06:45: _moveWWWLdapAccountOU: LDAP error code is 53
07-06-2005 19:06:45: _moveWWWLdapAccountOU: LDAP error text is: server
does not support moving of entries
07-06-2005 19:06:45: _moveWWWLdapAccountOU: returning with val 0

Thanks for that snippet, it lead to decent message. Guess that means it
supports "renaming" existing entries but not moving them?


> You need to use $ldap->moddn
> 
> > Anyone have an example of dn() or a moddn/modrdn call?
> 
> $mesg = $ldap->moddn(
>    dn     => "uid=foo, ou=People, dc=example, dc=com",
>    newrdn => "uid=bar"
> );
> 
> or
> 
> $mesg = $ldap->moddn(
>    dn           => "uid=foo, ou=People, dc=example, dc=com",
>    newsuperior  => "ou=Lemming, dc=example, dc=com", );

Reply via email to