Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 81071
Status: rejected
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: duncan_j_ferguson [...] yahoo.co.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.36
Fixed in: (no value)



Subject: moddn - forced to supply an arg when its not required
I am trying to move an object within my LDAP schema $ldap->ldap->moddn( $uid_obj->dn, newsuperior => $company_obj->dn, deleteoldrdn => 1, ); I am only moving the object, not making any other changes. However, the above results in an error: No NewRDN specified at script.pl line 72 I am having to supply a new RDN even though I am not changing it $ldap->ldap->moddn( $uid_obj->dn, newrdn => "uid=".$uid_obj->get_value('uid'), newsuperior => $company_obj->dn, deleteoldrdn => 1, ); so I believe this retriction needs to be relaxed.
Subject: Re: [rt.cpan.org #81071] moddn - forced to supply an arg when its not required
Date: Sun, 11 Nov 2012 20:43:06 +0100
To: bug-perl-ldap [...] rt.cpan.org
From: Peter Marschall <peter [...] adpm.de>
Hi, On Friday, 9. November 2012, you wrote: Show quoted text
> I am trying to move an object within my LDAP schema > > $ldap->ldap->moddn( > $uid_obj->dn, > newsuperior => $company_obj->dn, > deleteoldrdn => 1, > ); > > I am only moving the object, not making any other changes. However, the > above results in an error: > > No NewRDN specified at script.pl line 72 > > I am having to supply a new RDN even though I am not changing it > > $ldap->ldap->moddn( > $uid_obj->dn, > newrdn => "uid=".$uid_obj->get_value('uid'), > newsuperior => $company_obj->dn, > deleteoldrdn => 1, > ); > > so I believe this retriction needs to be relaxed.
For the LDAP methods, Net::LDAP tries to stay as close as possible to the ASN.1 representation of the LDAP protocol. The LDAP operation moddn resp. modrdn requires newrdn to be present, and so does Net::LDAP. I do not intend to deviate from this long-standing design desicion regarding the Net::LDAP API and will close this bug report. Best Peter -- Peter Marschall peter@adpm.de