Unix/Linux Go Back    

CentOS 7.0 - man page for net::ldap::filtermatch (centos section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

Net::LDAP::FilterMatch(3)      User Contributed Perl Documentation	Net::LDAP::FilterMatch(3)

       Net::LDAP::FilterMatch - LDAP entry matching

	 use Net::LDAP::Entry;
	 use Net::LDAP::Filter;
	 use Net::LDAP::FilterMatch;

	 my $entry = new Net::LDAP::Entry;
	 $entry->dn("cn=dummy entry");
	 $entry->add (
	  'cn' => 'dummy entry',
	  'street' => [ '1 some road','nowhere' ] );

	 my @filters = (qw/(cn=dummy*)

	 for (@filters) {
	   my $filter = Net::LDAP::Filter->new($_);
	   print $_,' : ', $filter->match($entry) ? 'match' : 'no match' ,"\n";

       This extension of the class Net::LDAP::Filter provides entry matching functionality on the
       Perl side.

       Given an entry it will tell whether the entry matches the filter object.

       It can be used on its own or as part of a Net::LDAP::Server based LDAP server.

       match ( ENTRY [ ,SCHEMA ] )
	   Return whether ENTRY matches the filter object. If a schema object is provided, the
	   selection of matching algorithms will be derived from schema.

	   In case of error undef is returned.

       For approximate matching like (cn~=Schmidt) there are several modules that can be used. By
       default the following modules will be tried in this order:


       If none of these modules is found it will fall back on a simple regexp algorithm.

       If you want to specifically use one implementation only, simply do

	 use Net::LDAP::FilterMatch qw(Text::Soundex);


       This library is free software; you can redistribute it and/or modify it under the same
       terms as Perl itself.

       Hans Klunder <hans.klunder@bigfoot.com> Peter Marschall <peter@adpm.de>

perl v5.16.3				    2013-06-07			Net::LDAP::FilterMatch(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 06:25 PM.