X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=blobdiff_plain;f=bin%2Fldap-rewrite.pl;h=9c57242be9c6ceec70908ec6c97443b5cc070804;hp=dd781c8b91321999c814d30752c27905f72a497b;hb=8166d09ec62b25bdd1f6f046d91b92470740309d;hpb=e2b49adaa02e6af366f1388c5556097cb08c5892 diff --git a/bin/ldap-rewrite.pl b/bin/ldap-rewrite.pl index dd781c8..9c57242 100755 --- a/bin/ldap-rewrite.pl +++ b/bin/ldap-rewrite.pl @@ -20,7 +20,7 @@ use YAML qw/LoadFile/; my $config = { yaml_dir => './yaml/', - listen => 'localhost:1389', + listen => shift @ARGV || 'localhost:1389', upstream_ldap => 'ldap.ffzg.hr', upstream_ssl => 1, overlay_prefix => 'ffzg-', @@ -99,7 +99,7 @@ sub log_response { if ( defined $response->{protocolOp}->{searchResEntry} ) { my $uid = $response->{protocolOp}->{searchResEntry}->{objectName}; - warn "## SEARCH $uid"; + warn "## objectName $uid"; my @attrs;