So, I've added
tmp-dir d:/tmpvpn
auth-user-pass-verify test.bat via-file
in my server's config.
The created test.bat in the folder where *.ovpn resides with the following:
echo "%~1" >> d:\aa.txt
type "%~1" >> d:\aa.txt
echo -------------------- >> d:\aa.txt
exit 0
Then I start server and client. On client I input some user and password (user: a, pass: v).
Clients connects well. The output to aa.txt is:
"d:/tmpvpn\openvpn_up_f968aaeaa4f48312d00cbd0f32d90b4e.tmp"
a
v
--------------------
The loggin on the server is:
D:\openvpn_server\config>echo "d:/tmpvpn\openvpn_up_f968aaeaa4f48312d00cbd0f32d90b4e.tmp" 1>>d:\aa.txt
D:\openvpn_server\config>type "d:/tmpvpn\openvpn_up_f968aaeaa4f48312d00cbd0f32d90b4e.tmp" 1>>d:\aa.txt
D:\openvpn_server\config>echo -------------------- 1>>d:\aa.txt
D:\openvpn_server\config>exit 0
Mon Jul 25 20:26:35 2011 192.168.0.1:2109 TLS: Username/Password authentication succeeded for username 'a'
So its definettly folder security access problem. read-only flag is obsolete for OpenVPN, does not interfere.
What version of OpenVPN you are running?