1Net::LDAP::FilterMatch(U3s)er Contributed Perl DocumentatNieotn::LDAP::FilterMatch(3)
2
3
4

NAME

6       Net::LDAP::FilterMatch - LDAP entry matching
7

SYNOPSIS

9         use Net::LDAP::Entry;
10         use Net::LDAP::Filter;
11         use Net::LDAP::FilterMatch;
12
13         my $entry = new Net::LDAP::Entry;
14         $entry->dn("cn=dummy entry");
15         $entry->add (
16          'cn' => 'dummy entry',
17          'street' => [ '1 some road','nowhere' ] );
18
19         my @filters = (qw/(cn=dummy*)
20                        (ou=*)
21                        (&(cn=dummy*)(street=*road))
22                        (&(cn=dummy*)(!(street=nowhere)))/);
23
24
25         for (@filters) {
26           my $filter = Net::LDAP::Filter->new($_);
27           print $_,' : ', $filter->match($entry) ? 'match' : 'no match' ,"\n";
28         }
29

ABSTRACT

31       This extension of the class Net::LDAP::Filter provides entry matching
32       functionality on the Perl side.
33
34       Given an entry it will tell whether the entry matches the filter
35       object.
36
37       It can be used on its own or as part of a Net::LDAP::Server based LDAP
38       server.
39

METHOD

41       match ( ENTRY [ ,SCHEMA ] )
42           Return whether ENTRY matches the filter object. If a schema object
43           is provided, the selection of matching algorithms will be derived
44           from schema.
45
46           In case of error undef is returned.
47
48       For approximate matching like (cn~=Schmidt) there are several modules
49       that can be used. By default the following modules will be tried in
50       this order:
51
52         String::Approx
53         Text::Metaphone
54         Text::Soundex
55
56       If none of these modules is found it will fall back on a simple regexp
57       algorithm.
58
59       If you want to specifically use one implementation only, simply do
60
61         use Net::LDAP::FilterMatch qw(Text::Soundex);
62

SEE ALSO

64       Net::LDAP::Filter
65
67       This library is free software; you can redistribute it and/or modify it
68       under the same terms as Perl itself.
69

AUTHORS

71       Hans Klunder <hans.klunder@bigfoot.com> Peter Marschall <peter@adpm.de>
72
73
74
75perl v5.10.1                      2010-03-12         Net::LDAP::FilterMatch(3)
Impressum