Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Login failed event missing from admin audit log #50223

Open
5 of 8 tasks
claucambra opened this issue Jan 17, 2025 · 1 comment
Open
5 of 8 tasks

[Bug]: Login failed event missing from admin audit log #50223

claucambra opened this issue Jan 17, 2025 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug

Comments

@claucambra
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

Bug description

Login failure events do not appear in audit log (instead, in the normal log). Affects server versions 28 up through to master

Steps to reproduce

  1. Enable admin_audit
  2. Try a login failed
  3. Check audit log

Expected behavior

Login failure event should appear in audit log

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@claucambra claucambra added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 17, 2025
@solracsf
Copy link
Member

It is logged on my instance (v30.0.5), yes nothing indicates a failure (just and attempt):

{
  "reqId": "7RZNGanCu0UMJiB4lPNn",
  "level": 1,
  "time": "2025-01-17T12:09:27+01:00",
  "remoteAddr": "51.1.8.18",
  "user": "--",
  "app": "admin_audit",
  "method": "POST",
  "url": "/login",
  "message": "Login attempt: \"user.name\"",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",
  "version": "30.0.5.1",
  "data": {
    "app": "admin_audit"
  }
}

A successful login logs that line, folowed by another one:

{
  "reqId": "cMIGRDfRCun79NZal56I",
  "level": 1,
  "time": "2025-01-17T12:11:58+01:00",
  "remoteAddr": "51.1.8.18",
  "user": "user.name",
  "app": "admin_audit",
  "method": "POST",
  "url": "/login",
  "message": "Login successful: \"user.name\"",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",
  "version": "30.0.5.1",
  "data": {
    "app": "admin_audit"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants