Skip Menu |

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

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

People
Owner: MARSCHAP [...] cpan.org
Requestors: benedikt.hallinger [...] kubus-it.de
Cc:
AdminCc:

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



Subject: Implement filter applying to set of entries
Date: Tue, 6 Mar 2018 08:25:37 +0000
To: "bug-perl-ldap [...] rt.cpan.org" <bug-perl-ldap [...] rt.cpan.org>
From: "Hallinger, Benedikt / KRS-KS-ID-PO" <benedikt.hallinger [...] kubus-it.de>
Hello everybody, i occasionally come accross LDIF files and have the nees to filter them. Most oft he time, regex filtering is enough to get matching entries (using ldif-extract.pl from http://ldif-extract.sourceforge.net/ ). However, sometimes filtering could be formulated much more easily and readable using LDAP-Filters. It would be very nice if the LDAP::Filter could be extended with a method apply( EntrySet ), where EntrySet could be either a LDAP::Search object or an array containing LDAP::Entry objects. This could easily be leveraged into client-side filtering of LDAP search results and filtering LDIF records or even hand crafted entries, making it possible to execute querys on entries in local memory. With best regards, Benedikt Hallinger
Subject: Re: [rt.cpan.org #124698] Implement filter applying to set of entries
Date: Tue, 06 Mar 2018 18:57:45 +0100
To: bug-perl-ldap [...] rt.cpan.org,"Hallinger, Benedikt / KRS-KS-ID-PO via RT" <bug-perl-ldap [...] rt.cpan.org>,benedikt.hallinger [...] kubus-it.de
From: Peter Marschall <peter [...] adpm.de>
Hi, There is no need for an extension to Net::LDAP::Filter. Net::LDAP::FilterMatch can be used to solve your issues. Net::LDAP::FilterMatch acts on a single entry. Iterating over an array of entries is trivial and can be done in your program. Please note that filtering on the client side is not guaranteed to yield the same results as filtering on the LDAP server side. The filters on the Perl side can mimic only some aspects of real LDAP Filters. Best Peter Am 6. März 2018 09:41:18 MEZ schrieb "Hallinger, Benedikt / KRS-KS-ID-PO via RT" <bug-perl-ldap@rt.cpan.org>: Show quoted text
>Tue Mar 06 03:41:17 2018: Request 124698 was acted upon. >Transaction: Ticket created by benedikt.hallinger@kubus-it.de > Queue: perl-ldap > Subject: Implement filter applying to set of entries > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: benedikt.hallinger@kubus-it.de > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124698 > > > >Hello everybody, >i occasionally come accross LDIF files and have the nees to filter >them. Most oft he time, regex filtering is enough to get matching >entries (using ldif-extract.pl from >http://ldif-extract.sourceforge.net/ ). >However, sometimes filtering could be formulated much more easily and >readable using LDAP-Filters. > >It would be very nice if the LDAP::Filter could be extended with a >method apply( EntrySet ), where EntrySet could be either a LDAP::Search >object or an array containing LDAP::Entry objects. >This could easily be leveraged into client-side filtering of LDAP >search results and filtering LDIF records or even hand crafted entries, >making it possible to execute querys on entries in local memory. > > >With best regards, >Benedikt Hallinger
-- Peter Marschall <peter@adpm.de>
Subject: AW: [rt.cpan.org #124698] Implement filter applying to set of entries
Date: Wed, 7 Mar 2018 07:53:54 +0000
To: "peter [...] adpm.de" <peter [...] adpm.de>, "bug-perl-ldap [...] rt.cpan.org" <bug-perl-ldap [...] rt.cpan.org>, "Hallinger, Benedikt / KRS-KS-ID-PO via RT" <bug-perl-ldap [...] rt.cpan.org>
From: "Hallinger, Benedikt / KRS-KS-ID-PO" <benedikt.hallinger [...] kubus-it.de>
Thank you very much! Show quoted text
-----Ursprüngliche Nachricht----- Von: peter@adpm.de [mailto:peter@adpm.de] Gesendet: Dienstag, 6. März 2018 18:58 An: bug-perl-ldap@rt.cpan.org; Hallinger, Benedikt / KRS-KS-ID-PO via RT <bug-perl-ldap@rt.cpan.org>; Hallinger, Benedikt / KRS-KS-ID-PO <benedikt.hallinger@kubus-it.de> Betreff: Re: [rt.cpan.org #124698] Implement filter applying to set of entries Hi, There is no need for an extension to Net::LDAP::Filter. Net::LDAP::FilterMatch can be used to solve your issues. Net::LDAP::FilterMatch acts on a single entry. Iterating over an array of entries is trivial and can be done in your program. Please note that filtering on the client side is not guaranteed to yield the same results as filtering on the LDAP server side. The filters on the Perl side can mimic only some aspects of real LDAP Filters. Best Peter Am 6. März 2018 09:41:18 MEZ schrieb "Hallinger, Benedikt / KRS-KS-ID-PO via RT" <bug-perl-ldap@rt.cpan.org>:
>Tue Mar 06 03:41:17 2018: Request 124698 was acted upon. >Transaction: Ticket created by benedikt.hallinger@kubus-it.de > Queue: perl-ldap > Subject: Implement filter applying to set of entries > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: benedikt.hallinger@kubus-it.de > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124698 > > > >Hello everybody, >i occasionally come accross LDIF files and have the nees to filter >them. Most oft he time, regex filtering is enough to get matching >entries (using ldif-extract.pl from >http://ldif-extract.sourceforge.net/ ). >However, sometimes filtering could be formulated much more easily and >readable using LDAP-Filters. > >It would be very nice if the LDAP::Filter could be extended with a >method apply( EntrySet ), where EntrySet could be either a LDAP::Search >object or an array containing LDAP::Entry objects. >This could easily be leveraged into client-side filtering of LDAP >search results and filtering LDIF records or even hand crafted entries, >making it possible to execute querys on entries in local memory. > > >With best regards, >Benedikt Hallinger
-- Peter Marschall <peter@adpm.de>