-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pam.d authentication fails #15702
Comments
I think maybe we can enable pam tags for docker build since it's Linux. |
Hi, I have the following version. I build it using the install from source guide.
|
What were your TAGS for the build? |
|
OK, so let's jump back a bit. This error report is coming from: Line 831 in 1e6fa57
Which implies that the user in question is not in the db at present. (see L777 of that function) The error (a Lines 30 to 43 in 1e6fa57
and so will be coming from L888 within: Lines 854 to 855 in 1e6fa57
(This was added by #13475 and amended slightly by #13627) The problem is that neither of these PRs considered what happens with PAM: Lines 682 to 715 in 1e6fa57
in particular: Line 707 in 1e6fa57
This makes no attempt to check that the pamLogin would be a valid email under those constraints. So... The question is what to do? I think we can leave the email blank or we could try adding the noreply suffix. An alternative is to change the pam module you're linking in to return the email address instead of the username. |
PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix go-gitea#15702 Signed-off-by: Andrew Thornton <[email protected]>
* Restore PAM user autocreation functionality PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix #15702 Signed-off-by: Andrew Thornton <[email protected]> * As per KN4CKER Signed-off-by: Andrew Thornton <[email protected]>
Backport go-gitea#15825 * Restore PAM user autocreation functionality PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix go-gitea#15702 Signed-off-by: Andrew Thornton <[email protected]> * As per KN4CKER Signed-off-by: Andrew Thornton <[email protected]>
Backport #15825 * Restore PAM user autocreation functionality PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix #15702 Signed-off-by: Andrew Thornton <[email protected]> * As per KN4CKER Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: 6543 <[email protected]>
* Restore PAM user autocreation functionality PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix go-gitea#15702 Signed-off-by: Andrew Thornton <[email protected]> * As per KN4CKER Signed-off-by: Andrew Thornton <[email protected]>
[x]
):Description
Authentication via pam.d krb5 module fails with error
...dels/login_source.go:831:UserSignIn() [W] Failed to login 'USERID' via 'systemusers': e-mail invalid [email: USERID]
The text was updated successfully, but these errors were encountered: