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

    Authentication OpenVPN fails when Windows AD shortens logonName

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 300 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.
    • S
      SvenVW
      last edited by SvenVW

      We encouter a problem, when Windows AD shortens a username.

      OpenVPN is set up using these steps: https://www.netgate.com/docs/pfsense/vpn/openvpn/authenticating-openvpn-users-with-radius-via-active-directory.html
      This works fine. But now we have a user that has a username longer than 20 characters.

      So the logon name is changed from "matthias.vandecasteele" to "matthias.vandecastee"
      We are able to log in using the Radius authentication tool inside pfSense. We need to use "matthias.vandecastee" (which makes sense, since the sAMAcount name in AD is used)

      0_1542640964819_OpenVPN.PNG

      But when trying to use the same credentials in OpenVPN GUI, we get "wrong username or password"
      0_1542641055348_OpenVPN1.PNG

      This is the config I used (also tried "matthias.vandecasteele" here instead of "matthias.vandecastee")
      0_1542641141341_OpenVPN2.PNG

      Any ideas? Thanks for your help!

      Best regards

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.