On 7/10/05 10:33, Anthony M. Martinez <[EMAIL PROTECTED]> wrote:

> On Mon, Sep 26, 2005 at 07:44:55PM -0500, Graham Barr wrote:
>> 
>> 
>> $ldap->moddn($entry, newrdn => $newrdn);
> 
> Hm. Does moddn leave a copy of the old entry? I'd like to keep the old entry
> sticking around until I've made sure that the other operations (moving the
> mail
> spool, homedir, etc) succeed.

No, it renames the entry. After the moddn(), the entry is still the same
entry (same createTimestamp, creatorsName) but it has a different DN and
potentially different values for the naming attribute(s).

No copying goes on.

It sounds like you will need to read the old entry and write a new one. Hope
you can read the user's password...

> Judging by the ability to pass "deleteoldrdn=>0", I would think so, but I'd
> like
> to make sure before I trash accounts (even test ones) :)
> 
> Pi
> 
> (I forgot to CC this to the list and only sent it to gbarr - doh)

Cheers,

Chris


Reply via email to