Marco Pizzoli writes:
sub search { my $this = shift; (...) for my $dn ( *keys %{$this}* ) { (...)
I'm interested in knowing what "keys %{$this}" should contain and why, in trying to use this sample perl module I cannot see any "key" of the array variable $this.
$this should be the return value from sub new. It's a blessed reference to a hash table, thus %{$this} (or just %$this) is the hash table.
That said, get latest version or the one in OpenLDAP 2.3. SampleLDAP.pm was buggy in OpenLDAP 2.4.<up to 23>.