mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-19 16:52:17 +01:00
more debugging on mocks
This commit is contained in:
parent
0e77cffb67
commit
8f61e253d3
@ -97,6 +97,8 @@ $sock->listen();
|
|||||||
my $sel = IO::Select->new($sock);
|
my $sel = IO::Select->new($sock);
|
||||||
my %handlers;
|
my %handlers;
|
||||||
|
|
||||||
|
warn "LDAP mockup started";
|
||||||
|
|
||||||
while (my @ready = $sel->can_read) {
|
while (my @ready = $sel->can_read) {
|
||||||
foreach my $fh (@ready) {
|
foreach my $fh (@ready) {
|
||||||
if ($fh == $sock) {
|
if ($fh == $sock) {
|
||||||
|
@ -49,6 +49,8 @@ my $socket = new IO::Socket::INET (
|
|||||||
Reuse => 1
|
Reuse => 1
|
||||||
) or die "Oops: $! \n";
|
) or die "Oops: $! \n";
|
||||||
|
|
||||||
|
warn "YKVAL mockup started on $port";
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
my $clientsocket = $socket->accept();
|
my $clientsocket = $socket->accept();
|
||||||
my $clientdata = <$clientsocket>;
|
my $clientdata = <$clientsocket>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user