Hello,
I believe I have found a regression introduced in Openfire 5.1.0.
Environment
-
Openfire 5.1.0
-
Debian 13.5
-
PostgreSQL 17.10
-
Java 25.0.3
Summary
After upgrading from Openfire 5.0.5 to 5.1.0, some existing administrator accounts can no longer log in to the Admin Console.
The login page shows:
Invalid username or password
However, credentials are correct and XMPP authentication works normally.
Affected vs working accounts
Affected accounts (legacy admins)
-
Existed before upgrade from 5.0.5
-
Previously had administrator privileges
-
Cannot log in to Admin Console after upgrade
-
Still authenticate successfully via XMPP
-
Are listed in
admin.authorizedJIDs -
SCRAM credentials are valid
-
No user flags or bans present
-
Removing and re-adding admin privileges does NOT help
Working accounts
The following cases work correctly in 5.1.0:
-
Newly created users granted admin privileges after creation
-
Existing users that were NOT admins before, but later granted admin rights
-
These accounts can log in to Admin Console without issues
Reproduction / additional test case
One affected legacy admin account was:
-
Unable to log in after upgrade to 5.1.0
-
Deleted completely
-
Recreated with the same username
-
Granted admin privileges again
After recreation, Admin Console login worked immediately.
This strongly suggests the issue is related to legacy user records rather than permissions.
Database checks
For affected users:
-
present in
ofUser -
listed in
admin.authorizedJIDs -
valid SCRAM fields (
storedKey,serverKey,salt,iterations) -
no entries in
ofUserFlag -
XMPP authentication succeeds
Audit log behavior
Before upgrade (5.0.5):
- Successful Admin Console logins exist
After upgrade (5.1.0):
- Only failed login attempts are recorded for affected accounts
Expected behavior
Administrator accounts that worked in Openfire 5.0.5 should continue to work after upgrading to 5.1.0.
Additionally, granting admin privileges to any user (old or new) should consistently allow Admin Console access.
Actual behavior
-
Legacy administrator accounts stop working after upgrade
-
Newly created admin accounts work correctly
-
Previously non-admin accounts promoted to admin also work correctly
Notes
This appears to be a regression affecting legacy administrator user records after upgrading to 5.1.0.
Happy to provide additional logs or database details if needed.