Hi,

I'm trying to change the dn of an ldap entry:

my $result = $ldaps->search( base   => "${base}",
                             filter => "(umMailUid=${old_mailUid})",


my $entry = $result->pop_entry;
$entry->changetype('modrdn');
$entry->add(newrdn => "umMailUid=${new_mailUid}");
$result = $entry->update($ldaps);

But I get this error:
[Ldap] No DN specified

I couldn't find any examples of changing the (r)dn with the changetype fuction.

If somebody could help me...
Thanks in advance,
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
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