How to enable radius authentication without client certificate?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
kapunov81
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 15, 2021 8:03 am

How to enable radius authentication without client certificate?

Post by kapunov81 » Thu Jul 15, 2021 8:37 am

Hi everyone!
At this moment I enabled radius authentication in server.conf:
server
plugin /usr/local/etc/openvpn/radiusplugin.so /usr/local/etc/openvpn/radiusplugin.cnf

and in client.conf:
auth-user-pass
Everything works perfectly but I want to get rid of the need for client.crt and client.key on client side. If I add in server.conf:
server
verify-client-cert none
username-as-common-name

OpenVPN server (2.5.0) just stops requesting radius server (which is running in debug mode - I can see that there are no requests from openvpn server). In openvpn log I can see this:
server
PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: /usr/local/etc/openvpn/radiusplugin.so
TLS Auth Error: Auth Username/Password verification failed for peer

Is it possible to combine radius authentication with non-using of client certificate/key?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to enable radius authentication without client certificate?

Post by TinCanTech » Thu Jul 15, 2021 11:12 am

There is a section in The Howto which describes exactly what you need.

kapunov81
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 15, 2021 8:03 am

Re: How to enable radius authentication without client certificate?

Post by kapunov81 » Fri Jul 16, 2021 6:32 am

Well, I found the source of my problem.
Radiusplugin searches in server.conf option "client-cert-not-required", but in OpenVpn 2.5 this option was changed on "verify-client-cert". I had to make a fake server.conf.alt for the radiusplugin with that required option "client-cert-not-required".

Post Reply