projects
/
virtual-ldap
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUG FIX for Column borrowernumber in where clause is ambiguous
[virtual-ldap]
/
bin
/
ldap-koha.pl
diff --git
a/bin/ldap-koha.pl
b/bin/ldap-koha.pl
index
d50ebbc
..
e97e1ef
100755
(executable)
--- a/
bin/ldap-koha.pl
+++ b/
bin/ldap-koha.pl
@@
-8,16
+8,16
@@
use IO::Socket;
use lib 'lib';
use LDAP::Koha;
use lib 'lib';
use LDAP::Koha;
-my $
port = 2389
;
+my $
listen = shift @ARGV || 'localhost:2389'
;
my $sock = IO::Socket::INET->new(
Listen => 5,
Proto => 'tcp',
Reuse => 1,
my $sock = IO::Socket::INET->new(
Listen => 5,
Proto => 'tcp',
Reuse => 1,
- Local
Port => $port
,
-) || die;
+ Local
Addr => $listen
,
+) || die
"can't listen to $listen $!"
;
-warn "# listening on $
port
";
+warn "# listening on $
listen
";
my $sel = IO::Select->new($sock);
my %Handlers;
my $sel = IO::Select->new($sock);
my %Handlers;