Skip to content

pfsense_openvpn_client support for auth_user and auth_pass fields #131

Description

@samuel-emrys

Is your feature request related to a problem? Please describe.
When configuring a vpn client, there currently doesn't appear to be a way to populate the "Username" and "Password" fields of the "User Authentication" section. In the xml, these are the following:

<openvpn>
  <openvpn-client>
    <auth_user></auth_user>
    <auth_pass></auth_pass>
  </openvpn-client>
</openvpn>

This is useful when trying to configure an external VPN service, such as PIA.

Describe the solution you'd like
Add the fields auth_user and auth_pass to the api to populate these fields in the xml.

Describe alternatives you've considered
N/A

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. opoplawski commented on Jan 26, 2025

    @opoplawski
    Contributor

    Would you be up for filing a PR for this? It should be fairly straightforward.

  2. stefangweichinger commented on Feb 5, 2026

    @stefangweichinger

    Interested as well. Maybe I can have a look at the code soon.

    @opoplawski could you please give me a starting point where this could be added ... thanks!

  3. stefangweichinger commented on Feb 5, 2026

    @stefangweichinger

    I assume, in plugins/module_utils/openvpn_client.py

  4. opoplawski commented on Feb 6, 2026

    @opoplawski
    Contributor

    Yup. parameters get documented in plugins/modules/pfsense_openvpn_client.py.

  5. stefangweichinger commented on Feb 6, 2026

    @stefangweichinger

    I see. I might try to add that, we'll see how it goes ...

  6. added a commit that references this issue on Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions