David Sommerseth wrote:
Am I missing something here or? openvpn does support this already, but
I'm doing it via a C plug-in ...
<http://www.eurephia.net/doxygen/eurephia-devel/eurephia_8c_source.html#l00348>
In this case, the plug-in (which needs to be compiled) gets it from the
environment, not OpenVPN itself.
I haven't studied the openvpn code to see if this goes for the script
interface ... but if it really is missing, it shouldn't be that hard to
fix. On the otherhand, if it is difficult, writing your own script
runner as a plug-in is definitely not an impossible task.
Script runner?
My idea is to let OpenVPN (vanilla) grab a username and password from
the environment for client-side authentication (if allowed/specified
by/in the configuration). This method for username and password
insertion doesn't need any third-party patches or OS-specific scripts to
work.
Regards,
Zep