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 296 Views
    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
      macst345
      last edited by

      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
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        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
          macst345
          last edited by

          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
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.