use lib 'lib';
use LDAP::Koha;
-my $listen = '10.60.0.13:2389';
+my $listen = shift @ARGV || 'localhost:2389';
my $sock = IO::Socket::INET->new(
Listen => 5,
Proto => 'tcp',
Reuse => 1,
LocalAddr => $listen,
-) || die;
+) || die "can't listen to $listen $!";
warn "# listening on $listen";
my $config = {
yaml_dir => './yaml/',
- listen => 'localhost:1389',
+ listen => shift @ARGV || 'localhost:1389',
upstream_ldap => 'ldap.ffzg.hr',
upstream_ssl => 1,
overlay_prefix => 'ffzg-',
if ( defined $response->{protocolOp}->{searchResEntry} ) {
my $uid = $response->{protocolOp}->{searchResEntry}->{objectName};
- warn "## SEARCH $uid";
+ warn "## objectName $uid";
my @attrs;