OpenVPN - does not work login with a password ...
Tune openvpn server FreeBSD 8.0
for some reason, I want users to be authorized with a password.
Authorization does not pass
in the log server has an error message:
AUTH-PAM: BACKGROUND: user 'admin' failed to authenticate: authentication error
PLUGIN_CALL: POST /usr/local/lib/openvpn-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: /usr/local/lib/openvpn-auth-pam.so
Note: cannot open openvpn_up_cf43858b231e43faba028e15f92050a4.tmp for WRITE
TLS Auth Error: could not write username/password to file: openvpn_up_cf43858b231e43faba028e15f92050a4.tmp
TLS Auth Error: Auth Username/Password verification failed for peer
Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA
server config:
mode server
tls-server
daemon
ifconfig 192.168.0.1 255.255.255.0
port 1195
proto tcp-server
dev tap1
ca /usr/local/etc/openvpn2/keys/ca.crt
cert /usr/local/etc/openvpn2/keys/gate.crt
key /usr/local/etc/openvpn2/keys/gate.key
dh /usr/local/etc/openvpn2/keys/dh1024.pem
push "route 192.168.0.0 255.255.255.0 192.168.0.1"
plugin /usr/local/lib/openvpn-auth-pam.so "login login USERNAME password PASSWORD"
auth-user-pass-verify "/usr/local/etc/openvpn2/auth-pam.pl /usr/local/etc/openvpn2/users.pw" via-file
auth MD5
tls-server
tls-auth /usr/local/etc/openvpn2/keys/ta.key 0
tls-timeout 120
cipher BF-CBC
keepalive 10 120
client-to-client
client-cert-not-required
user nobody
group nobody
max-clients 10
comp-lzo
persist-key
persist-tun
status openvpn-pass-status.log
log /var/log/openvpn-pass.log
verb 3
client config:
client
dev tap
proto tcp
remote xxx.xxx.xxx.xxx 1195
resolv-retry infinite
persist-key
persist-tun
ca ca.crt
tls-client
tls-auth ta.key 1
auth-user-pass
;ns-cert-type server
cipher BF-CBC
auth MD5
comp-lzo
verb 3
mute 20
example of the password file on the server user.pw:
admin
qwerty
user
ytrewq