projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
455a72f
)
removed bunch of output with $debug
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 2 May 2010 19:29:45 +0000
(19:29 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 2 May 2010 19:29:45 +0000
(19:29 +0000)
lib/LDAP/Koha.pm
patch
|
blob
|
history
diff --git
a/lib/LDAP/Koha.pm
b/lib/LDAP/Koha.pm
index
540d278
..
4e32a02
100644
(file)
--- a/
lib/LDAP/Koha.pm
+++ b/
lib/LDAP/Koha.pm
@@
-219,13
+219,13
@@
sub search {
my ( $dn, $attributes ) = _dn_attributes( $row, $base );
my ( $dn, $attributes ) = _dn_attributes( $row, $base );
- warn "#
dn $last_dn ... $dn\n"
;
+ warn "#
# dn $last_dn ... $dn\n" if $debug
;
if ( $dn ne $last_dn ) {
if ( $entry ) {
#$entry->changetype( 'modify' );
if ( $dn ne $last_dn ) {
if ( $entry ) {
#$entry->changetype( 'modify' );
- warn "### entry ",$entry->dump( \*STDERR );
+ warn "### entry ",$entry->dump( \*STDERR )
if $debug
;
push @entries, $entry;
undef $entry;
}
push @entries, $entry;
undef $entry;
}
@@
-240,7
+240,7
@@
sub search {
} else {
foreach my $n ( keys %$attributes ) {
my $v = $attributes->{$n};
} else {
foreach my $n ( keys %$attributes ) {
my $v = $attributes->{$n};
- warn "#
attr $n = $v\n"
;
+ warn "#
# attr $n = $v\n" if $debug
;
$entry->add( $n, $v ) if $entry->get_value( $n ) ne $v;
}
}
$entry->add( $n, $v ) if $entry->get_value( $n ) ne $v;
}
}
@@
-251,7
+251,7
@@
sub search {
}
if ( $entry ) {
}
if ( $entry ) {
- warn "### last entry ",$entry->dump( \*STDERR );
+ warn "### last entry ",$entry->dump( \*STDERR )
if $debug
;
push @entries, $entry;
}
push @entries, $entry;
}