mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #405] Login takes several attempts #155
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @poVoq on GitHub (Jan 3, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/405
I have this strange issue that logging into the web-interface always takes several attempts.
Initially I thought it was a config issue as I just could not log in, but when randomly trying multiple times to click on the login button it suddenly worked.
Usually it takes 2-5 attempts before the login works.
I am using the :latest official docker image with Podman behind an Nginx reverse-proxy and otherwise everything seems to be working fine.
@nitnelave commented on GitHub (Jan 3, 2023):
That is strange. Could you restart LLDAP with verbose logging (verbose = true in the config) and try to log in until it succeeds, then post the logs?
@poVoq commented on GitHub (Jan 3, 2023):
Yes I just did that. I guess this might be the problem?
@nitnelave commented on GitHub (Jan 3, 2023):
Oooh, that seems really wrong... Can you post the backtrace? I.e. running it with RUST_BACKTRACE=1
Also, just to help debugging, would you be able to share your LLDAP config and/or anything particular w.r.t. the database? What user you're trying to log in as, which group it's a member of, ...
@poVoq commented on GitHub (Jan 3, 2023):
Its a fresh install with a standard config and only two users. Nothing special at all.
I'll try starting the container with the backtrace env and report back.
@poVoq commented on GitHub (Jan 3, 2023):
The backtrace:
@nitnelave commented on GitHub (Jan 3, 2023):
What are the last debug logs from LLDAP? I'm trying to determine what is the actual query that caused it.
@poVoq commented on GitHub (Jan 3, 2023):
https://pastebin.com/gseymnXX
Is the full log output.
@nitnelave commented on GitHub (Jan 3, 2023):
Thanks. Last thing, can you open
users.dbwithsqlite3and runpragma table_info(jwt_refresh_storage);?@poVoq commented on GitHub (Jan 3, 2023):
Yes and then?
@nitnelave commented on GitHub (Jan 3, 2023):
Thanks. I believe that it's an issue with the ORM we're using: https://github.com/SeaQL/sea-orm/issues/1357
@nitnelave commented on GitHub (Jan 3, 2023):
For context, you're hitting the panic 50% of the time, when the hash maps to a negative signed value instead of a positive one. So yes, keep trying to log in :/
@nitnelave commented on GitHub (Jan 24, 2023):
Alright, I contributed with the sea-orm authors on a PR, and we got a release that fixes this issue. I've got a PR to update the dependency.
@poVoq commented on GitHub (Jan 25, 2023):
Works great now! Thanks!