develooper Front page | perl.ldap | Postings from July 2018

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

Thread Previous
From:
Peter Marschall
Date:
July 1, 2018 07:16
Subject:
Re: what is the best practice to modrdn for branch of objects?
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 <zeus@ibs.dn.ua> wrote:
> > 
> > Chris Ridd <chrisridd@mac.com> wrote:
> >> Net::LDAP's moddn method does not take a „recursively“ option.
> > 
> > may it sound sane to add it to the method?
> > 
> >> The LDAP modifydn operation is already defined to move all the entry's
> >> children.
> > 
> > I believe, it'd be great to have something like that in Net::LDAP too …
> 
> Well that’s up to Peter, but I would say that no it doesn’t 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 
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 (see
Net::LDAP::Extra::AD, Net::LDAP::Extra::eDirectory

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

Best
PEter

-- 
Peter Marschall
peter@adpm.de

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About