--On Monday, July 15, 2019 5:53 PM +0200 Christian <ch...@computersalat.de>
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>