Commit 906db8da authored by Xavier Guimard's avatar Xavier Guimard

Merge branch 'antoinerosier/lemonldap-ng-logs' into v2.0

parents cf908fa0 b79c9659
......@@ -560,7 +560,10 @@ sub _deleteSession {
# Log
my $user = $req->{sessionInfo}->{ $self->conf->{whatToTrace} };
$self->userLogger->notice("User $user has been disconnected") if $user;
my $mod = $req->{sessionInfo}->{_auth};
$self->userLogger->notice(
"User $user has been disconnected from $mod ($req->{sessionInfo}->{ipAddr})"
) if $user;
return $session->error ? 0 : 1;
}
......
......@@ -92,6 +92,13 @@ sub run {
}
}
}
# Log
my $user = $req->{sessionInfo}->{ $self->conf->{whatToTrace} };
my $mod = $req->{sessionInfo}->{_auth};
$self->userLogger->notice(
"Session granted for $user by $mod ($req->{sessionInfo}->{ipAddr})")
if $user;
return PE_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment