projects
/
virtual-ldap
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make listen address and port configurable as first option
[virtual-ldap]
/
bin
/
ldap-koha.pl
diff --git
a/bin/ldap-koha.pl
b/bin/ldap-koha.pl
index
40c64d6
..
e97e1ef
100755
(executable)
--- a/
bin/ldap-koha.pl
+++ b/
bin/ldap-koha.pl
@@
-8,14
+8,14
@@
use IO::Socket;
use lib 'lib';
use LDAP::Koha;
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,
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";
warn "# listening on $listen";