mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 07:53:00 +00:00
Remote IP logged for failed authentication attempts
This commit is contained in:
@@ -236,7 +236,7 @@ class PAMAuthenticator(LocalAuthenticator):
|
||||
try:
|
||||
pamela.authenticate(username, data['password'], service=self.service)
|
||||
except pamela.PAMError as e:
|
||||
self.log.warn("PAM Authentication failed: %s", e)
|
||||
self.log.warn("PAM Authentication failed (@%s): %s", handler.request.remote_ip, e)
|
||||
else:
|
||||
return username
|
||||
|
||||
|
Reference in New Issue
Block a user