Net::LDAP and contextCSN

2019-07-15 Thread Christian
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 i

Re: Net::LDAP and contextCSN

2019-07-15 Thread Quanah Gibson-Mount
--On Monday, July 15, 2019 5:53 PM +0200 Christian 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 => ''

Re: Net::LDAP and contextCSN

2019-07-15 Thread Martin Fabiani-Reher
Hello Christian, I don't know the exact syntax for ldapsearch because I haven't used it for ages. filter => '*' indeed is no valid filter.  It is a bit like trying an SQL command like SELECT contextCSN FROM $table WHERE * If I remember correctly, you either need to omit the filter: $search