Gitea cannot get sshPublicKey from LDAP #2556

Closed
opened 2025-11-02 04:40:14 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @MrCirca on GitHub (Nov 21, 2018).

Description

Hello, i have configured Gitea gets data from LDAP. Gets all data except sshPublicKey
Database has not write something in publickey table

Screenshots

Originally created by @MrCirca on GitHub (Nov 21, 2018). - Gitea version (or commit ref): - Git version: v1.6.0-rc2 - Operating system: Debian - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/MrCirca/800954bd928e2595b1ed80dfaaff895a ## Description Hello, i have configured Gitea gets data from LDAP. Gets all data except sshPublicKey Database has not write something in publickey table ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/confirmedissue/needs-feedback labels 2025-11-02 04:40:14 -06:00
Author
Owner

@lafriks commented on GitHub (Nov 21, 2018):

Need more specific information, what ldap server, how configured auth source?

@lafriks commented on GitHub (Nov 21, 2018): Need more specific information, what ldap server, how configured auth source?
Author
Owner

@MrCirca commented on GitHub (Nov 22, 2018):

LDAP server is OpenLDAP. I configured auth source from Gitea GUI.

@MrCirca commented on GitHub (Nov 22, 2018): LDAP server is OpenLDAP. I configured auth source from Gitea GUI.
Author
Owner

@lafriks commented on GitHub (Nov 22, 2018):

Can you show also auth source configuration parameters (removing sensitive information)? It should be working as we have integration tests against OpenLDAP so this must be configuration problem most probably

@lafriks commented on GitHub (Nov 22, 2018): Can you show also auth source configuration parameters (removing sensitive information)? It should be working as we have integration tests against OpenLDAP so this must be configuration problem most probably
Author
Owner

@MrCirca commented on GitHub (Nov 22, 2018):

I use anonymous bind
2018-11-22-165152_1916x1163_scrot

@MrCirca commented on GitHub (Nov 22, 2018): I use anonymous bind ![2018-11-22-165152_1916x1163_scrot](https://user-images.githubusercontent.com/6732767/48909885-268b9180-ee77-11e8-9885-2930ad19d04c.png)
Author
Owner

@lafriks commented on GitHub (Nov 22, 2018):

Do you see any errors in gitea.log when authorizing?

@lafriks commented on GitHub (Nov 22, 2018): Do you see any errors in gitea.log when authorizing?
Author
Owner

@MrCirca commented on GitHub (Nov 22, 2018):

No i dont. Tommorow i will send you full log

@MrCirca commented on GitHub (Nov 22, 2018): No i dont. Tommorow i will send you full log
Author
Owner

@MrCirca commented on GitHub (Nov 23, 2018):

When i login....
https://gist.github.com/MrCirca/bd4c185c395e3515b0592ff606dedf32

When i do Synchronize external user data....
https://gist.github.com/MrCirca/9abce000521a08b6368dc53e32afd487

Gitea doesnt write public_key in database

@MrCirca commented on GitHub (Nov 23, 2018): When i login.... https://gist.github.com/MrCirca/bd4c185c395e3515b0592ff606dedf32 When i do Synchronize external user data.... https://gist.github.com/MrCirca/9abce000521a08b6368dc53e32afd487 Gitea doesnt write public_key in database
Author
Owner

@stale[bot] commented on GitHub (Jan 22, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 22, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2556