Identity management for WireGuard
Identity management for WireGuard
Posted Oct 19, 2022 12:48 UTC (Wed) by GhePeU (subscriber, #56133)In reply to: Identity management for WireGuard by Cyberax
Parent article: Identity management for WireGuard
If you're already using an LDAP server (AD included) you can configure the LDAP plugin that's available on most if not all distros, or you can use the "auth-user-pass-verify" option to execute an external program, passing to it the username and password via environment variables or a temporary file and having it return 0 if the user is authorized and 1 if he's not.
In both cases you still need to distribute the CA certificate, but that can be done easily enough by including it in an .ovpn profile (inside a <ca> tag) that you would use it anyway to tell the mobile client to authenticate with username and password ("auth-user-pass" option) and not to require a client certificate ("client-cert-not-required" option).
