Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::ldap::filtermatch(3) [suse man page]

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

NAME
Net::LDAP::FilterMatch - LDAP entry matching SYNOPSIS
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*) (ou=*) (&(cn=dummy*)(street=*road)) (&(cn=dummy*)(!(street=nowhere)))/); for (@filters) { my $filter = Net::LDAP::Filter->new($_); print $_,' : ', $filter->match($entry) ? 'match' : 'no match' ," "; } ABSTRACT
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. METHOD
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: String::Approx Text::Metaphone Text::Soundex 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); SEE ALSO
Net::LDAP::Filter COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHORS
Hans Klunder <hans.klunder@bigfoot.com> Peter Marschall <peter@adpm.de> perl v5.12.1 2010-03-12 Net::LDAP::FilterMatch(3)

Check Out this Related Man Page

Net::LDAP::Control::ManageDsaIT(3)			User Contributed Perl Documentation			Net::LDAP::Control::ManageDsaIT(3)

NAME
Net::LDAP::Control::ManageDsaIT - LDAPv3 Manage DSA-IT control object SYNOPSIS
use Net::LDAP; use Net::LDAP::Control::ManageDsaIT; $ldap = Net::LDAP->new( "ldap.mydomain.eg" ); $manage = Net::LDAP::Control::ManageDsaIT->new( critical => 1 ); $msg = $ldap->modify( 'dc=sub,dc=mydomain,dc=eg", changes => [ delete => { ref => 'ldap://ldap2/dc=sub,dc=mydom,dc=eg' }, add => { ref => 'ldap://ldap3/dc=sub,dc=mydom,dc=eg' } ], control => [ $manage ] ); die "error: ",$msg->code(),": ",$msg->error() if ($msg->code()); DESCRIPTION
"Net::LDAP::Control::ManageDsaIT" provides an interface for the creation and manipulation of objects that represent the "ManageDsaIT" control as described by RFC 3296. CONSTRUCTOR ARGUMENTS
Since the "ManageDsaIT" control does not have any values only the constructor arguments described in Net::LDAP::Control are supported METHODS
As there are no additional values in the control only the methods in Net::LDAP::Control are available for "Net::LDAP::Control::ManageDsaIT" objects. SEE ALSO
Net::LDAP, Net::LDAP::Control, AUTHOR
Peter Marschall <peter@adpm.de>. Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> COPYRIGHT
Copyright (c) 2004 Peter Marschall. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2012-09-20 Net::LDAP::Control::ManageDsaIT(3)
Man Page