Re: what is the best practice to modrdn for branch of objects?

Peter Marschall <[email protected]> Sun, 01 Jul 2018 09:09:14 +0200
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization ADPM
Message-ID <2660475.1Gr6PJtGXu@moth>
Hi,

Am Dienstag, 19. Juni 2018, 08:45:08 CEST schrieb Chris Ridd:
> > On 19 Jun 2018, at 05:58, Zeus Panchenko <[email protected]> wrote:
> >=20
> > Chris Ridd <[email protected]> wrote:
> >> Net::LDAP's moddn method does not take a =E2=80=9Erecursively=E2=80=9C=
 option.
> >=20
> > may it sound sane to add it to the method?
> >=20
> >> The LDAP modifydn operation is already defined to move all the entry's
> >> children.
> >=20
> > I believe, it'd be great to have something like that in Net::LDAP too =
=E2=80=A6
>=20
> Well that=E2=80=99s up to Peter, but I would say that no it doesn=E2=80=
=99t make sense
> because the operations in LDAP.pm only do what the RFCs describe.

perl-ldap's first objective is to make the LDAP operations specified in the=
=20
LDAP specs available to Perl.
The operation defined in the specs provide a clear, well defined foundation.

I do not intend to modify the base operations from the specs.

> I think you should write your own wrapper/utility function that does what
> your use case needs.
This is definitely preferable.

perl ldap has the Net::LDAP::Extra module that allows for easy extension (s=
ee
Net::LDAP::Extra::AD, Net::LDAP::Extra::eDirectory

If you provide code that is reasonably generic (and does not only fulfill y=
our=20
specific use case), I may consider including it. (No guarantee)

Best
PEter

=2D-=20
Peter Marschall
[email protected]