Skip to content
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

mod_auth_otp should honor RequireTableEntry semantics for SFTP logins #1319

Closed
Castaglia opened this issue Aug 29, 2021 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@Castaglia
Copy link
Member

One of the goals of mod_auth_otp is to be able to support users that have OTP entries, but not to require it -- an opt-in approach. That's the idea behind the RequireTableEntry AuthOTPOption.

By default, mod_auth_otp will not require OTP logins for FTP/FTPS logins for users that don't have entries in the AuthOTPTable.

However, these same semantics -- not requiring OTP -- is not actually being done for SFTP logins that use e.g.:

SFTPAuthMethods password+keyboard-interactive

With the desired semantics, you should be able to configure an AuthOTPTable, and to configure mod_sftp for 2FA, as above; ff the user in question has an entry in the AuthOTPTable, that user will be prompted for the OTP code, and it must match. If they don't, the above should Just Work(tm) without the user requiring the OTP code. Currently, this is not the case.

That is, the requirement of OTP/2FA is controlled by per-user entries in the AuthOTPTable. That's the idea/intent, and it is not being honored for SFTP logins.

@Castaglia Castaglia added the bug label Aug 29, 2021
@Castaglia Castaglia added this to the 1.3.8 milestone Aug 29, 2021
@Castaglia Castaglia self-assigned this Aug 29, 2021
Castaglia added a commit that referenced this issue Aug 29, 2021
Castaglia added a commit that referenced this issue Aug 29, 2021
…ntry-issue1319

Issue #1319: Handle the case where mod_sftp 2FA is configured, but th…
Castaglia added a commit that referenced this issue Aug 29, 2021
@Castaglia
Copy link
Member Author

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant