Skip to content

Usernames with hyphen are rejected in sftpsubsys #263

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

Open
jonasbardino opened this issue Jun 13, 2025 · 1 comment · May be fixed by #262
Open

Usernames with hyphen are rejected in sftpsubsys #263

jonasbardino opened this issue Jun 13, 2025 · 1 comment · May be fixed by #262
Assignees
Labels
bug Something isn't working

Comments

@jonasbardino
Copy link
Contributor

As mentioned in the comments to PR #233 existing users with hyphen (-) in their usernames are incorrectly rejected in PAM before even reaching authentication:

Jun 12 09:45:51 sftp-erda pam_mig[73585]: Invalid username: [email protected]
Jun 12 09:45:51 sftp-erda sshd[73585]: Invalid user [email protected] from REDACTED port 40024

We need to allow hyphen in the regex pattern in PAM and NSS and a regression in that PR apparently broke that.

@jonasbardino
Copy link
Contributor Author

jonasbardino commented Jun 13, 2025

An affected user confirmed the patch to fix the issue in production. Please refer to internal support ticket 34499 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant