UserSignIn: PAM not supported #328

Closed
opened 2025-11-02 03:18:49 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @JKingweb on GitHub (Feb 8, 2017).

  • Gitea version (or commit ref): 1.0.1
  • Git version: 2.7.4
  • Operating system: Linux (Ubuntu 16.04)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2017/02/07 20:52:13 [...routers/user/auth.go:117 SignInPost()] [E] UserSignIn: PAM not supported
2017/02/07 20:52:19 [...s/context/context.go:168 func1()] [E] UserSignIn: PAM not supported
2017/02/07 20:52:19 [...routers/repo/http.go:111 HTTP()] [E] UserSignIn error: %v: PAM not supported

Description

When I try to use PAM to sign in with a previously created user, I receive an HTTP 500 error and the above lines appear in the Gitea log (debug logging shows only sessions IDs and CSRF tokens in addition). My PAM setup works for several other services, including Gogs. Running Gitea as root has no effect, nor does starting from a fresh installation. However, a colleague of mine with a practically identical installation has no issues at all.

Originally created by @JKingweb on GitHub (Feb 8, 2017). - Gitea version (or commit ref): 1.0.1 - Git version: 2.7.4 - Operating system: Linux (Ubuntu 16.04) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ``` 2017/02/07 20:52:13 [...routers/user/auth.go:117 SignInPost()] [E] UserSignIn: PAM not supported 2017/02/07 20:52:19 [...s/context/context.go:168 func1()] [E] UserSignIn: PAM not supported 2017/02/07 20:52:19 [...routers/repo/http.go:111 HTTP()] [E] UserSignIn error: %v: PAM not supported ``` ## Description When I try to use PAM to sign in with a previously created user, I receive an HTTP 500 error and the above lines appear in the Gitea log (debug logging shows only sessions IDs and CSRF tokens in addition). My PAM setup works for several other services, including Gogs. Running Gitea as root has no effect, nor does starting from a fresh installation. However, a colleague of mine with a practically identical installation has no issues at all.
GiteaMirror added the type/question label 2025-11-02 03:18:49 -06:00
Author
Owner

@lunny commented on GitHub (Feb 8, 2017):

Do you build Gitea with tags=pam ?

@lunny commented on GitHub (Feb 8, 2017): Do you build Gitea with `tags=pam` ?
Author
Owner

@JKingweb commented on GitHub (Feb 8, 2017):

I downloaded the pre-built binary (for amd64). PAM is listed as an authentication source in the admin panel, if that means anything.

Nothing is printed to /var/log/auth.log upon my attempts.

@JKingweb commented on GitHub (Feb 8, 2017): I downloaded the pre-built binary (for amd64). PAM is listed as an authentication source in the admin panel, if that means anything. Nothing is printed to /var/log/auth.log upon my attempts.
Author
Owner

@lunny commented on GitHub (Feb 8, 2017):

I need to test for confirm that.

@lunny commented on GitHub (Feb 8, 2017): I need to test for confirm that.
Author
Owner

@tboerger commented on GitHub (Feb 9, 2017):

The prebuilt binaries are not built with the PAM tag, if you really want to use PAM you have to build it from source, sorry for that.

@tboerger commented on GitHub (Feb 9, 2017): The prebuilt binaries are *not* built with the PAM tag, if you really want to use PAM you have to build it from source, sorry for that.
Author
Owner

@JKingweb commented on GitHub (Feb 9, 2017):

Ah, thanks for the clarification, and sorry to waste your time.

I think I'll stick with Gogs in that case, since I don't have to compile that myself to get PAM. I'll definitely keep an eye on Gitea, though. :)

@JKingweb commented on GitHub (Feb 9, 2017): Ah, thanks for the clarification, and sorry to waste your time. I think I'll stick with Gogs in that case, since I don't have to compile that myself to get PAM. I'll definitely keep an eye on Gitea, though. :)
Author
Owner

@tboerger commented on GitHub (Feb 9, 2017):

We got another issue open where we plan to provide different "flavors" of gitea to enable different build tags. Maybe we can add one flavor with PAM support, but that needs to be tested properly.

@tboerger commented on GitHub (Feb 9, 2017): We got another issue open where we plan to provide different "flavors" of gitea to enable different build tags. Maybe we can add one flavor with PAM support, but that needs to be tested properly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#328