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