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

Login bypasses FreeIPA OTP #676

Open
Kaydub00 opened this issue Mar 1, 2017 · 8 comments
Open

Login bypasses FreeIPA OTP #676

Kaydub00 opened this issue Mar 1, 2017 · 8 comments

Comments

@Kaydub00
Copy link

Kaydub00 commented Mar 1, 2017

I have authentication setup to use FreeIPA. When a user has no OTP token they can login to xrdp fine with their FreeIPA credentials. Once an OTP token is added and OTP is turned on in FreeIPA XRDP login no longer works for that user.

I believe this is because there's a pre-authentication and then on other applications, like SSH, a second prompt is given asking for the second factor (otp token). XRDP just gets a failed login.

@metalefty
Copy link
Member

Currently, xrdp doesn't support multi-factor authentication. We know some people want to do MFA. We need to manage it someday.

@Kaydub00
Copy link
Author

Kaydub00 commented Mar 6, 2017

I believe we got this working where xrdp would accept the password as password + otp. We reconfigured /etc/pam.d/xrdp-sesman and now it works with password + otp.

@MarcoJankowski
Copy link

@Kaydub00 , can you paste your xrdp-sesman pam configuration?

@corrjo
Copy link

corrjo commented Nov 8, 2017

@Kaydub00, can you give some insight on how you accomplished this?

@jenningsloy318
Copy link

@Kaydub00 can you share some details about your pam config ?

@Kaydub00
Copy link
Author

@MarcoJankowski @corrjo @jenningsloy318 I'm reaching out to the company I worked for where I had to set this up. Going to see if I can get the details. If any of you three figured it out, please post it here!

@shaneforsythe
Copy link

@MarcoJankowski @corrjo @jenningsloy318 @Kaydub00

I have now FINALLY found a solution to this. Append this to your /etc/sssd/sssd.conf

[prompting/2fa/xrdp-sesman]
single_prompt = True

See this sssd discussion ( initially only sshd was hardcoded in sssd to allow combing password+otp )
https://bugzilla.redhat.com/show_bug.cgi?id=1402056

@jenningsloy318
Copy link

Thanks, I will check in our env

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

No branches or pull requests

6 participants