Config::LDAPClient::Search - simple encapsulation for search criteria.
use Config::LDAPClient::Search; $s = Config::LDAPClient::Search->new('dc=foo', 'one', '(uid=*)'); $ldap->search( base => $s->base, scope => $s->scope, filter => $s->filter );
This is a very simple class designed to wrap simple search criteria. Specifically, libnss-ldap.conf lets you specify search critieria for specific maps in the form 'base?scope?filter'; this encapsulates that data and provides convenient access to it.
Constructs and returns a new object with the accessors defaulted to the specified values. Any of them can be specified as undef.
Accessor for the search base.
Accessor for the search scope.
Accessor for the search filter.
Called when the object is stringified. Returns the base, scope, and filter (in that order) joined by '?'.
Michael Fowler <mfowler@cpan.org>
Copyright 2009 Michael Fowler
This program is free software; you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the Artistic License version 2.0.
To install Config::LDAPClient, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::LDAPClient
CPAN shell
perl -MCPAN -e shell install Config::LDAPClient
For more information on module installation, please visit the detailed CPAN module installation guide.