Chris Ridd wrote:
On 11/6/07 12:27, "Rudy Gevaert" <[EMAIL PROTECTED]> wrote:

I put

     $entry->changetype('moddn');
     $entry->add(newrdn => "umMailUid=${new_mailUid}");
     $entry->add(deleteoldrdn => 0);
     $result = $entry->update($ldaps);

in my script.  But now I get: "attribute 'umMailUid' cannot have
multiple values"


Any idea what's wrong?  umMailUid isn't allow to have multiple values
(ldap structure), but I can't see where I'm defining multiple values for
that attribute.

You're telling the server to retain the old value for umMailUid, because you
specify deleteoldrdn = 0. If you change that to 1 what happens?

Ah, I thought I was going to make a copy then. But you are right, the move now works! Thanks to everyone replying to posts on this list.

--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          [EMAIL PROTECTED]          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to