Hello Strat, thank you for your reply.
Am 15.07.19 um 23:46 schrieb 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: Now I know omitting is not correct and will result in 'Bad Filter' ... > or set on which attribute you search for: > > $search = $ldap->search( > base => $BaseDn, > scope => 'base', > filter => '(contextCSN=*)', > attrs => [ 'contextCSN'], > ); This works and in combination with Dales simple Example I got it running and getting the wanted results. :-) > > BTW: it's better to copy&paste code, because the code you gave in your > call for help will never compile, see the red annotations in your code > example. I fully agree, but at that moment I wasn't able to copy&paste ... hence the typos. I just wanted to show up the 'filter' problem. I need to define a valid filter: filter => '(objectClass=*)', or filter => '(contextCSN=*)', both work. Regards -- Christian ------------------------------------------------------------ https://join.worldcommunitygrid.org?recruiterId=177038 ------------------------------------------------------------ http://www.sc24.de - Sportbekleidung ------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature