Hi,

I wrote a plugin for radius support, which creates client config files when the 
event OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY occurs.

If the OpenVPN option "username-as-common-name" is used during 
OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY event the common-name is still the one 
from the certificate and after successful authentication it becomes the 
username, with the difference that special characters are remapped.

If I use the raw username inside the plugin, OpenVPN doesn't find the client 
config file later, when it contains special characters.

My question is now, if it is possible to set the common-name which is pushed 
to the plugin already to the remapped common-name, when plugins are called for 
the first time.

Or is the better solution to do the remapping also in the plugin?

Thanks a lot.

Regards
Ralf


Reply via email to