ldap source - unable to login after restart #3386

Closed
opened 2025-11-02 05:11:15 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @jacekjaros on GitHub (May 27, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

On fresh Gitea instance I setup ldap auth source. After that I create user and set ldap as auth source for this user. After Gitea restart i'm not able to login as admin user (local auth) or as new created user (ldap).
If i use wrong password i get information that password is mismatch (what is expected). If i use correct password Gitea do redirect to login page.
First time I found this issue after upgrade from 1.7 to 1.8.

OS: Debian Buster
Gitea: 1.8.1
PostgreSQL: 11.3

Screenshots

Originally created by @jacekjaros on GitHub (May 27, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description On fresh Gitea instance I setup ldap auth source. After that I create user and set ldap as auth source for this user. After Gitea restart i'm not able to login as admin user (local auth) or as new created user (ldap). If i use wrong password i get information that password is mismatch (what is expected). If i use correct password Gitea do redirect to login page. First time I found this issue after upgrade from 1.7 to 1.8. OS: Debian Buster Gitea: 1.8.1 PostgreSQL: 11.3 ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@jacekjaros commented on GitHub (May 31, 2019):

it seems o work on 1.8.2. I deon't have old db snapshot to reproduce my case.

@jacekjaros commented on GitHub (May 31, 2019): it seems o work on 1.8.2. I deon't have old db snapshot to reproduce my case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3386