• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Openvpn with LDAP auth and 2fa

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 303 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    macst345
    last edited by Dec 5, 2024, 2:49 PM

    Hi,

    I am trying to setup openvpn +2fa(google) on my pfsense.
    I have connected my pfsense to a LDAP server(on a synology NAS) for auth and it tests ok.
    Username is passed to LDAP and LDAP checks if it is a member of VPNgroup)

    so far so good.
    how to i add 2fa (google authenticator) to the mix ?

    I looked into freeradius and pam but not sure which method to proceed with.

    User's password is stored encrypted in LDAP so ot may fail for freeradius, since i read somewhere that freeradius requires unencrypted passwords.

    Thanks for any suggestions.

    Michael

    1 Reply Last reply Reply Quote 0
    • S Offline
      stephenw10 Netgate Administrator
      last edited by Dec 5, 2024, 5:40 PM

      Do you mean via Google LDAP or just Google authenticator (totp) locally?

      To use totp I believe you need to use radius, yes.

      1 Reply Last reply Reply Quote 0
      • M Offline
        macst345
        last edited by Dec 6, 2024, 3:17 AM

        Hi Stephen,

        Yes, looking to add google authenticator for 2fa (totp) to working openvpn with local ldap authentication.

        Michael

        1 Reply Last reply Reply Quote 0
        • S Offline
          stephenw10 Netgate Administrator
          last edited by Dec 6, 2024, 2:33 PM

          AFAIK you would need to use radius to do it. Radius can auth against LDAP but that may not work with 2FA since as you say it needs to see the password a user submits as it contains the additional auth code.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received