Re: Net::LDAP and contextCSN

[email protected] (Quanah Gibson-Mount) Mon, 15 Jul 2019 08:10:21 -0700
Newsgroups perl.ldap
Message-ID <4372E490E25E6F9F5001A2CC@[192.168.1.39]>
--On Monday, July 15, 2019 5:53 PM +0200 Christian <[email protected]> 
wrote:

> Hi,
>
> could need some help.
>
> I want to do with Net::LDAP what ldapsearch is doing with:
> ldapsearch -x -LLL -s base contextCSN
>
> with Net::LDAP I am struggeling ... tried the following:
>
> $search = ldap->search( base => $BaseDn, scope => ''base', filter =>
> '*', attrs => 'contextCSN'] );
>
> This results in Bad filter.
> From man page of ldapsearch there is no filter defined ... so is this
> possible with Net::LDAP ?

The default filter (if not specified) is "(objectClass=*)".

You may also find this script I wrote for contextCSN monitoring of interest:

<https://github.com/Zimbra/zm-ldap-utilities/blob/develop/src/libexec/zmreplchk>

Regards,
Quanah


--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>