X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=blobdiff_plain;f=lib%2FLDAP%2FKoha.pm;fp=lib%2FLDAP%2FKoha.pm;h=741527872da15b5c73ead12aa3c5196e3f8e5103;hp=563c9685af5991c2c87c6bf73e19354ff039df5f;hb=bd4afe7e5024b11510f5ab2ea50092eaabc9dcee;hpb=f19f31c7b13856a33b305842d2c9ab07e57c620c diff --git a/lib/LDAP/Koha.pm b/lib/LDAP/Koha.pm index 563c968..7415278 100644 --- a/lib/LDAP/Koha.pm +++ b/lib/LDAP/Koha.pm @@ -64,7 +64,7 @@ use constant RESULT_OK => { sub new { my ($class, $sock) = @_; my $self = $class->SUPER::new($sock); - print "connection from: ", $sock->peerhost(), "\n"; + warn "# connection from: ", $sock->peerhost(); return $self; } @@ -146,7 +146,6 @@ sub _dn_attributes { sub search { my $self = shift; my $reqData = shift; - print "searching...\n"; warn "# " . localtime() . " request = ", dump($reqData); @@ -211,6 +210,9 @@ sub search { $sth->execute( @values ); warn "# ", $sth->rows, " results for ",dump( $reqData->{'filter'} ); + my $dump = dump( $reqData->{'filter'} ); + $dump =~ s/[\r\n\s]+/ /gm; + print $sth->rows, " results for $dump\n"; my $last_dn = '?'; my $entry;