mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 16:03:00 +00:00
Remote IP logged for failed authentication attempts
This commit is contained in:
@@ -236,7 +236,7 @@ class PAMAuthenticator(LocalAuthenticator):
|
|||||||
try:
|
try:
|
||||||
pamela.authenticate(username, data['password'], service=self.service)
|
pamela.authenticate(username, data['password'], service=self.service)
|
||||||
except pamela.PAMError as e:
|
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:
|
else:
|
||||||
return username
|
return username
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user