|
From: <ci...@gm...> - 2010-10-12 15:49:52
|
I keep receiving this message after trying to connect to my openvpn
server. My config is set to handle authentication
using a file which only has a line of code (exit 0;) for testing. From
the documentation exit 0 means a valid login but I
believe the file does not get called at all since the error clearly
states something related to credentials not being read
or transmitted. My config is as follows:
mode server
dev tun
proto tcp
port 1194
script-security 3
keepalive 10 120
plugin /usr/lib/openvpn/openvpn-auth-pam.so login
client-cert-not-required
#username-as-common-name
auth-user-pass-verify /etc/openvpn/auth.pl via-env
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
user nobody
group nogroup
server 10.8.0.0 255.255.255.0
persist-key
persist-tun
#persist-local-ip
status openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
log-append /var/log/openvpn
comp-lzo
auth.pl contents:
#!/usr/bin/perl
my $user = $ENV{username};
my $passwd = $ENV{password};
printf("$user : $passwd\n");
exit 0;
Whatever I try to do I get the same error: ERROR: could not read Auth
username from stdin
Any ideas?
|